Fix release notes for nuget package

This commit is contained in:
Tiago Conceição
2022-04-02 03:39:30 +01:00
parent caa37436db
commit 3c5d231290
3 changed files with 16 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
- **AnyCubic file format:**
- (Fix) Lift height and speed are not being correctly set on old version, keeping a constant value (#441)
- (Fix) Retract speed getter was not return value from TSMC if using version 516
- **Tool - Infill:**
- (Add) Waves infill type
- (Add) Concentric infill type
- (Add) Gyroid infill type (#443)
- (Change) Increase the default spacing from 200px to 300px
- (Improvement) Fastter infill processing by use the model bounds
- (Add) `FormatSpeedUnit` property to file formats to get the speed unit which the file use internally
- (Fix) UI: ROI rectangle can overlap scroll bars while selecting
+1 -1
View File
@@ -74,7 +74,7 @@
</ItemGroup>
<Target Name="PreparePackageReleaseNotesFromFile" BeforeTargets="GenerateNuspec">
<ReadLinesFromFile File="../CHANGELOG.md">
<ReadLinesFromFile File="RELEASE_NOTES.md">
<Output TaskParameter="Lines" ItemName="ReleaseNoteLines" />
</ReadLinesFromFile>
<PropertyGroup>
+3 -2
View File
@@ -284,8 +284,8 @@ $foundHashTag = $false
$sb = [System.Text.StringBuilder]::new()
foreach($line in $changelog) {
$line = $line.TrimEnd()
if($line -eq '') { continue }
if($line.StartsWith("##")) {
if([string]::IsNullOrWhiteSpace($line)) { continue }
if($line.StartsWith('##')) {
if(!$foundHashTag)
{
$foundHashTag = $true
@@ -298,6 +298,7 @@ foreach($line in $changelog) {
}
}
Write-Host $sb.ToString()
Set-Content -Path "UVtools.Core/RELEASE_NOTES.md" -Value $sb.ToString()
if($null -ne $enableNugetPublish -and $enableNugetPublish)