This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
publish.ps1
29 lines (21 loc) · 1.58 KB
/
publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$PublishPath = ".\src\SCD.Avalonia\bin\Publish"
mkdir -Force $PublishPath
dotnet publish .\SCD.sln -c Release -p:PublishProfile=win-x64 -v q --nologo
Compress-Archive -Force -Path $PublishPath\win-x64 -DestinationPath $PublishPath\win-x64
Remove-Item -Path $PublishPath\win-x64 -Force -Recurse -ErrorAction SilentlyContinue
dotnet publish .\SCD.sln -c Release -p:PublishProfile=win-x86 -v q --nologo
Compress-Archive -Force -Path $PublishPath\win-x86 -DestinationPath $PublishPath\win-x86
Remove-Item -Path $PublishPath\win-x86 -Force -Recurse -ErrorAction SilentlyContinue
dotnet publish .\SCD.sln -c Release -p:PublishProfile=win-arm64 -v q --nologo
Compress-Archive -Force -Path $PublishPath\win-arm64 -DestinationPath $PublishPath\win-arm64
Remove-Item -Path $PublishPath\win-arm64 -Force -Recurse -ErrorAction SilentlyContinue
dotnet publish .\SCD.sln -c Release -p:PublishProfile=win-arm -v q --nologo
Compress-Archive -Force -Path $PublishPath\win-arm -DestinationPath $PublishPath\win-arm
Remove-Item -Path $PublishPath\win-arm -Force -Recurse -ErrorAction SilentlyContinue
dotnet publish .\SCD.sln -c Release -p:PublishProfile=linux-x64 -v q --nologo
Compress-Archive -Force -Path $PublishPath\linux-x64 -DestinationPath $PublishPath\linux-x64
Remove-Item -Path $PublishPath\linux-x64 -Force -Recurse -ErrorAction SilentlyContinue
dotnet publish .\SCD.sln -c Release -p:PublishProfile=osx-x64 -v q --nologo
Compress-Archive -Force -Path $PublishPath\osx-x64 -DestinationPath $PublishPath\osx-x64
Remove-Item -Path $PublishPath\osx-x64 -Force -Recurse -ErrorAction SilentlyContinue
explorer.exe $PublishPath