Update build.ps1
This commit is contained in:
@@ -16,6 +16,15 @@ dotnet publish `
|
|||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o "$OutputPath\win-x64"
|
-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 `
|
dotnet publish `
|
||||||
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
|
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
|
||||||
-c Release `
|
-c Release `
|
||||||
@@ -25,6 +34,33 @@ dotnet publish `
|
|||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o "$OutputPath\linux-x64"
|
-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 $? ) {
|
if ( -Not $? ) {
|
||||||
exit $lastExitCode
|
exit $lastExitCode
|
||||||
@@ -32,7 +68,11 @@ if ( -Not $? ) {
|
|||||||
|
|
||||||
if ( Test-Path -Path .\bin\v2rayN ) {
|
if ( Test-Path -Path .\bin\v2rayN ) {
|
||||||
rm -Force "$OutputPath\win-x64\*.pdb"
|
rm -Force "$OutputPath\win-x64\*.pdb"
|
||||||
|
rm -Force "$OutputPath\win-arm64\*.pdb"
|
||||||
rm -Force "$OutputPath\linux-x64\*.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'
|
Write-Host 'Build done'
|
||||||
|
|||||||
Reference in New Issue
Block a user