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'