mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-29 22:36:20 +00:00
39 lines
No EOL
724 B
PowerShell
39 lines
No EOL
724 B
PowerShell
param (
|
|
[Parameter()]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string]
|
|
$OutputPath = '.\bin\v2rayMiniConsole'
|
|
)
|
|
|
|
Write-Host 'Building'
|
|
|
|
dotnet publish `
|
|
.\v2rayMiniConsole\v2rayMiniConsole.csproj `
|
|
-c Release `
|
|
--self-contained false `
|
|
-p:PublishReadyToRun=true `
|
|
-p:PublishSingleFile=true `
|
|
-o $OutputPath
|
|
|
|
dotnet publish `
|
|
.\v2rayUpgrade\v2rayUpgrade.csproj `
|
|
-c Release `
|
|
--self-contained false `
|
|
-p:PublishReadyToRun=true `
|
|
-p:PublishSingleFile=true `
|
|
-o $OutputPath
|
|
|
|
if ( -Not $? ) {
|
|
exit $lastExitCode
|
|
}
|
|
|
|
if ( Test-Path -Path .\bin\v2rayMiniConsole ) {
|
|
rm -Force "$OutputPath\*.pdb"
|
|
rm -Force "$OutputPath\*.xml"
|
|
}
|
|
|
|
Write-Host 'Build done'
|
|
|
|
ls $OutputPath
|
|
7z.exe a v2rayMiniConsole.zip $OutputPath
|
|
exit 0 |