Skip to content

Commit 6974b0e

Browse files
committed
feature: supports windows on arm
1 parent 9d3f186 commit 6974b0e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build/build.windows.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ if (Test-Path SourceGit) {
66

77
Remove-Item *.zip -Force
88

9+
dotnet publish ..\src\SourceGit.csproj -c Release -r win-arm64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
10+
11+
Remove-Item SourceGit\*.pdb -Force
12+
13+
Compress-Archive -Path SourceGit -DestinationPath "sourcegit_$version.win-arm64.zip"
14+
15+
if (Test-Path SourceGit) {
16+
Remove-Item SourceGit -Recurse -Force
17+
}
18+
919
dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
1020

1121
Remove-Item SourceGit\*.pdb -Force

0 commit comments

Comments
 (0)