Skip to content

Commit 4f5362f

Browse files
committed
Update build.ps1
1 parent 176a91e commit 4f5362f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

v2rayN/build.ps1

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,29 @@ Write-Host 'Building'
1010
dotnet publish `
1111
.\v2rayN\v2rayN.csproj `
1212
-c Release `
13+
-r win-x64 `
1314
--self-contained false `
1415
-p:PublishReadyToRun=false `
1516
-p:PublishSingleFile=true `
16-
-o $OutputPath
17+
-o "$OutputPath\win-x64"
1718

1819
dotnet publish `
19-
.\AmazTool\AmazTool.csproj `
20+
.\v2rayN.Desktop\v2rayN.Desktop.csproj `
2021
-c Release `
21-
--self-contained false `
22+
-r linux-x64 `
23+
--self-contained true `
2224
-p:PublishReadyToRun=false `
2325
-p:PublishSingleFile=true `
24-
-o $OutputPath
26+
-o "$OutputPath\linux-x64"
27+
2528

2629
if ( -Not $? ) {
2730
exit $lastExitCode
2831
}
2932

3033
if ( Test-Path -Path .\bin\v2rayN ) {
31-
rm -Force "$OutputPath\*.pdb"
32-
rm -Force "$OutputPath\*.xml"
34+
rm -Force "$OutputPath\win-x64\*.pdb"
35+
rm -Force "$OutputPath\linux-x64\*.pdb"
3336
}
3437

3538
Write-Host 'Build done'

0 commit comments

Comments
 (0)