-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.ps1
20 lines (12 loc) · 1015 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
param(
[string] $Architecture = "x64",
[string] $Version = "0.0.4.0"
)
$ErrorActionPreference = "Stop";
Write-Output "Start building singleWithRuntime...";
dotnet publish src/PipManager/PipManager.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.exe" -NewName "PipManager_withRuntime.exe"
Write-Output "Start building singleWithoutRuntime...";
dotnet publish src/PipManager/PipManager.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;
Write-Output "Build Finished";
[Console]::ReadKey()