mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
23 lines
598 B
PowerShell
23 lines
598 B
PowerShell
$version = Get-Content ..\VERSION
|
|
|
|
if (Test-Path SourceGit) {
|
|
Remove-Item SourceGit -Recurse -Force
|
|
}
|
|
|
|
Remove-Item *.zip -Force
|
|
|
|
dotnet publish ..\src\SourceGit.csproj -c Release -r win-arm64 -o SourceGit
|
|
|
|
Remove-Item SourceGit\*.pdb -Force
|
|
|
|
Compress-Archive -Path SourceGit -DestinationPath "sourcegit_$version.win-arm64.zip"
|
|
|
|
if (Test-Path SourceGit) {
|
|
Remove-Item SourceGit -Recurse -Force
|
|
}
|
|
|
|
dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit
|
|
|
|
Remove-Item SourceGit\*.pdb -Force
|
|
|
|
Compress-Archive -Path SourceGit -DestinationPath "sourcegit_$version.win-x64.zip"
|