Update build.ps1

This commit is contained in:
2dust 2024-11-27 13:57:51 +08:00
parent 0c03550c62
commit 28447a9d43

View file

@ -43,24 +43,6 @@ dotnet publish `
-p:PublishSingleFile=true `
-o "$OutputPath\linux-arm64"
dotnet publish `
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
-c Release `
-r osx-x64 `
--self-contained true `
-p:PublishReadyToRun=false `
-p:PublishSingleFile=true `
-o "$OutputPath\osx-x64"
dotnet publish `
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
-c Release `
-r osx-arm64 `
--self-contained true `
-p:PublishReadyToRun=false `
-p:PublishSingleFile=true `
-o "$OutputPath\osx-arm64"
if ( -Not $? ) {
exit $lastExitCode
@ -71,8 +53,6 @@ if ( Test-Path -Path .\bin\v2rayN ) {
rm -Force "$OutputPath\win-arm64\*.pdb"
rm -Force "$OutputPath\linux-x64\*.pdb"
rm -Force "$OutputPath\linux-arm64\*.pdb"
rm -Force "$OutputPath\osx-x64\*.pdb"
rm -Force "$OutputPath\osx-arm64\*.pdb"
}
Write-Host 'Build done'