2024-04-16 20:00:48 -07:00
|
|
|
$version = Get-Content ..\VERSION
|
2024-04-16 02:29:36 -07:00
|
|
|
|
2024-04-01 00:27:55 -07:00
|
|
|
if (Test-Path SourceGit) {
|
|
|
|
Remove-Item SourceGit -Recurse -Force
|
|
|
|
}
|
|
|
|
|
2024-04-16 02:29:36 -07:00
|
|
|
Remove-Item *.zip -Force
|
2024-04-01 00:27:55 -07:00
|
|
|
|
2024-04-02 05:00:33 -07:00
|
|
|
dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
2024-04-01 00:27:55 -07:00
|
|
|
|
|
|
|
Remove-Item SourceGit\*.pdb -Force
|
|
|
|
|
2024-04-16 02:29:36 -07:00
|
|
|
Compress-Archive -Path SourceGit -DestinationPath "sourcegit_$version.win-x64.zip"
|