diff --git a/build/build.windows.bat b/build/build.windows.bat deleted file mode 100644 index 9198dbd2..00000000 --- a/build/build.windows.bat +++ /dev/null @@ -1,5 +0,0 @@ - -rmdir /S /Q SourceGit -dotnet publish ..\src\SourceGit\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained -resources\7z.exe a SourceGit.win-x64.zip SourceGit "-xr!en/" "-xr!zh/" "-xr!*.pdb" -rmdir /S /Q SourceGit \ No newline at end of file diff --git a/build/build.windows.ps1 b/build/build.windows.ps1 new file mode 100644 index 00000000..a4afbd23 --- /dev/null +++ b/build/build.windows.ps1 @@ -0,0 +1,15 @@ +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 \ No newline at end of file diff --git a/build/resources/7z.exe b/build/resources/7z.exe deleted file mode 100644 index a739ca0f..00000000 Binary files a/build/resources/7z.exe and /dev/null differ