Skip to content

Commit

Permalink
[Release 0.1.4] Update
Browse files Browse the repository at this point in the history
[Release 0.1.4] Update
  • Loading branch information
AuroraZiling authored Oct 28, 2024
2 parents e5f4f90 + 3ea2781 commit 9e2a266
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
param(
[string] $Architecture = "x64",
[string] $Version = "0.1.3.0"
[string] $Version = "0.1.4.0"
)

$ErrorActionPreference = "Stop";

Write-Output "Start building singleWithRuntime...";

dotnet publish src/PipManager.Windows.csproj -c Release -r "win-$Architecture" -o "build/$Version/singleWithRuntime" -p:Platform=$Architecture -p:PublishReadyToRun=false -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:SelfContained=true -p:AssemblyVersion=$Version -p:Configuration=Release;
dotnet publish src/PipManager.Windows.csproj -c Release -r "win-$Architecture" -o "build/$Version/singleWithRuntime" -p:Platform=$Architecture -p:PublishReadyToRun=true -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:SelfContained=true -p:AssemblyVersion=$Version -p:Configuration=Release;

Rename-Item -Path "build/$Version/singleWithRuntime/PipManager.Windows.exe" -NewName "PipManager_withRuntime.exe"

Remove-Item -Path "build/$Version/singleWithRuntime/*.xml" -Force -ErrorAction SilentlyContinue

Write-Output "Start building singleWithoutRuntime...";

dotnet publish src/PipManager.Windows.csproj -c Release -r "win-$Architecture" -o "build/$Version/singleWithoutRuntime" -p:Platform=$Architecture -p:PublishReadyToRun=false -p:EnableCompressionInSingleFile=false -p:PublishSingleFile=true -p:SelfContained=false -p:AssemblyVersion=$Version -p:Configuration=Release;

Rename-Item -Path "build/$Version/singleWithoutRuntime/PipManager.Windows.exe" -NewName "PipManager.exe"

Remove-Item -Path "build/$Version/singleWithoutRuntime/*.xml" -Force -ErrorAction SilentlyContinue

Write-Output "Build Finished";

[Console]::ReadKey()

0 comments on commit 9e2a266

Please sign in to comment.