mirror of https://github.com/2dust/v2rayN
Update build.ps1
parent
176a91e7c5
commit
4f5362fdc4
|
@ -10,26 +10,29 @@ Write-Host 'Building'
|
||||||
dotnet publish `
|
dotnet publish `
|
||||||
.\v2rayN\v2rayN.csproj `
|
.\v2rayN\v2rayN.csproj `
|
||||||
-c Release `
|
-c Release `
|
||||||
|
-r win-x64 `
|
||||||
--self-contained false `
|
--self-contained false `
|
||||||
-p:PublishReadyToRun=false `
|
-p:PublishReadyToRun=false `
|
||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o $OutputPath
|
-o "$OutputPath\win-x64"
|
||||||
|
|
||||||
dotnet publish `
|
dotnet publish `
|
||||||
.\AmazTool\AmazTool.csproj `
|
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
|
||||||
-c Release `
|
-c Release `
|
||||||
--self-contained false `
|
-r linux-x64 `
|
||||||
|
--self-contained true `
|
||||||
-p:PublishReadyToRun=false `
|
-p:PublishReadyToRun=false `
|
||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o $OutputPath
|
-o "$OutputPath\linux-x64"
|
||||||
|
|
||||||
|
|
||||||
if ( -Not $? ) {
|
if ( -Not $? ) {
|
||||||
exit $lastExitCode
|
exit $lastExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Test-Path -Path .\bin\v2rayN ) {
|
if ( Test-Path -Path .\bin\v2rayN ) {
|
||||||
rm -Force "$OutputPath\*.pdb"
|
rm -Force "$OutputPath\win-x64\*.pdb"
|
||||||
rm -Force "$OutputPath\*.xml"
|
rm -Force "$OutputPath\linux-x64\*.pdb"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host 'Build done'
|
Write-Host 'Build done'
|
||||||
|
|
Loading…
Reference in New Issue