Skip to content

Commit

Permalink
trim still doesn't work out of the box it seems
Browse files Browse the repository at this point in the history
  • Loading branch information
13xforever committed Aug 7, 2023
1 parent 7641180 commit 28011bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (($PSVersionTable.Platform -eq 'Win32NT') -or $IsWindows)
dotnet publish -v:q -r win-x64 --self-contained -c Release -o distrib/gui/win-legacy/ UI.WinForms.Msil/UI.WinForms.Msil.csproj /p:PublishTrimmed=False /p:PublishSingleFile=True
}
dotnet build -v:q -r win-x64 -f net7.0-windows --self-contained -c Release UI.Avalonia/UI.Avalonia.csproj
dotnet publish -v:q -r win-x64 -f net7.0-windows --self-contained -c Release -o distrib/gui/win/ UI.Avalonia/UI.Avalonia.csproj /p:PublishTrimmed=True /p:PublishSingleFile=True
dotnet publish -v:q -r win-x64 -f net7.0-windows --self-contained -c Release -o distrib/gui/win/ UI.Avalonia/UI.Avalonia.csproj /p:PublishTrimmed=False /p:PublishSingleFile=True
}

Write-Host 'Building Linux binary...' -ForegroundColor Cyan
Expand All @@ -37,7 +37,7 @@ if ($BuildLegacyVersions)
dotnet publish -v:q -r linux-x64 --self-contained -c Release -o distrib/cli/lin/ UI.Console/UI.Console.csproj /p:PublishTrimmed=False /p:PublishSingleFile=True
}
dotnet build -v:q -r linux-x64 -f net7.0 --self-contained -c Release UI.Avalonia/UI.Avalonia.csproj
dotnet publish -v:q -r linux-x64 -f net7.0 --self-contained -c Release -o distrib/gui/lin/ UI.Avalonia/UI.Avalonia.csproj /p:PublishTrimmed=True /p:PublishSingleFile=True
dotnet publish -v:q -r linux-x64 -f net7.0 --self-contained -c Release -o distrib/gui/lin/ UI.Avalonia/UI.Avalonia.csproj /p:PublishTrimmed=False /p:PublishSingleFile=True
if (($LASTEXITCODE -eq 0) -and (($PSVersionTable.Platform -eq 'Unix') -or $IsLinux))
{
if ($BuildLegacyVersions)
Expand Down

0 comments on commit 28011bd

Please sign in to comment.