Update build.ps1

pull/6190/head
2dust 2024-11-27 11:25:37 +08:00
parent ba17f8fde9
commit a00e9a6f5e
1 changed files with 40 additions and 0 deletions

View File

@ -16,6 +16,15 @@ dotnet publish `
-p:PublishSingleFile=true `
-o "$OutputPath\win-x64"
dotnet publish `
.\v2rayN\v2rayN.csproj `
-c Release `
-r win-arm64 `
--self-contained false `
-p:PublishReadyToRun=false `
-p:PublishSingleFile=true `
-o "$OutputPath\win-arm64"
dotnet publish `
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
-c Release `
@ -24,6 +33,33 @@ dotnet publish `
-p:PublishReadyToRun=false `
-p:PublishSingleFile=true `
-o "$OutputPath\linux-x64"
dotnet publish `
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
-c Release `
-r linux-arm64 `
--self-contained true `
-p:PublishReadyToRun=false `
-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 $? ) {
@ -32,7 +68,11 @@ if ( -Not $? ) {
if ( Test-Path -Path .\bin\v2rayN ) {
rm -Force "$OutputPath\win-x64\*.pdb"
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'