mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
15 lines
509 B
PowerShell
15 lines
509 B
PowerShell
|
if (Test-Path SourceGit) {
|
||
|
Remove-Item SourceGit -Recurse -Force
|
||
|
}
|
||
|
|
||
|
if (Test-Path SourceGit.win-x64.zip) {
|
||
|
Remove-Item SourceGit.win-x64.zip -Force
|
||
|
}
|
||
|
|
||
|
dotnet publish ..\src\SourceGit\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||
|
|
||
|
Remove-Item SourceGit\*.pdb -Force
|
||
|
Remove-Item SourceGit\zh -Recurse -Force
|
||
|
Remove-Item SourceGit\en -Recurse -Force
|
||
|
|
||
|
Compress-Archive -Path SourceGit -DestinationPath SourceGit.win-x64.zip
|