update build
This commit is contained in:
@@ -2,7 +2,10 @@ param (
|
||||
[Parameter()]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$OutputPath = './bin/v2rayN'
|
||||
$OutputPathWin64 = './bin/v2rayN/win-x64',
|
||||
$OutputPathWinArm64 = './bin/v2rayN/win-arm64',
|
||||
$OutputPathLinux64 = './bin/v2rayN/linux-x64',
|
||||
$OutputPathLinuxArm64 = './bin/v2rayN/linux-arm64'
|
||||
)
|
||||
|
||||
Write-Host 'Building'
|
||||
@@ -14,7 +17,7 @@ dotnet publish `
|
||||
--self-contained false `
|
||||
-p:PublishReadyToRun=false `
|
||||
-p:PublishSingleFile=true `
|
||||
-o "$OutputPath/win-x64"
|
||||
-o $OutputPathWin64
|
||||
|
||||
dotnet publish `
|
||||
./v2rayN/v2rayN.csproj `
|
||||
@@ -23,7 +26,7 @@ dotnet publish `
|
||||
--self-contained false `
|
||||
-p:PublishReadyToRun=false `
|
||||
-p:PublishSingleFile=true `
|
||||
-o "$OutputPath/win-arm64"
|
||||
-o $OutputPathWinArm64
|
||||
|
||||
dotnet publish `
|
||||
./v2rayN.Desktop/v2rayN.Desktop.csproj `
|
||||
@@ -32,7 +35,7 @@ dotnet publish `
|
||||
--self-contained true `
|
||||
-p:PublishReadyToRun=false `
|
||||
-p:PublishSingleFile=true `
|
||||
-o "$OutputPath/linux-x64"
|
||||
-o $OutputPathLinux64
|
||||
|
||||
dotnet publish `
|
||||
./v2rayN.Desktop/v2rayN.Desktop.csproj `
|
||||
@@ -41,7 +44,7 @@ dotnet publish `
|
||||
--self-contained true `
|
||||
-p:PublishReadyToRun=false `
|
||||
-p:PublishSingleFile=true `
|
||||
-o "$OutputPath/linux-arm64"
|
||||
-o $OutputPathLinuxArm64
|
||||
|
||||
|
||||
if ( -Not $? ) {
|
||||
@@ -49,14 +52,16 @@ 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 "$OutputPathWin64/*.pdb"
|
||||
rm -Force "$OutputPathWinArm64/*.pdb"
|
||||
rm -Force "$OutputPathLinux64/*.pdb"
|
||||
rm -Force "$OutputPathLinuxArm64/*.pdb"
|
||||
}
|
||||
|
||||
Write-Host 'Build done'
|
||||
|
||||
ls $OutputPath
|
||||
7z a v2rayN.zip $OutputPath
|
||||
7z a v2rayN-windows-64.zip $OutputPathWin64
|
||||
7z a v2rayN-windows-arm64.zip $OutputPathWinArm64
|
||||
7z a v2rayN-linux-64.zip $OutputPathLinux64
|
||||
7z a v2rayN-linux-arm64.zip $OutputPathLinuxArm64
|
||||
exit 0
|
||||
Reference in New Issue
Block a user