From a00e9a6f5ecf146a0b0a2b862af871adbdff1757 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:25:37 +0800 Subject: [PATCH] Update build.ps1 --- v2rayN/build.ps1 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/v2rayN/build.ps1 b/v2rayN/build.ps1 index f6d9b148..d0ac41c5 100644 --- a/v2rayN/build.ps1 +++ b/v2rayN/build.ps1 @@ -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'