mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 14:56:19 +00:00
Create build-osx.sh
This commit is contained in:
parent
a55c65374d
commit
ad344356df
1 changed files with 17 additions and 0 deletions
17
v2rayN/build-osx.sh
Normal file
17
v2rayN/build-osx.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo 'Building'
|
||||||
|
|
||||||
|
OutputPath='./bin/v2rayN'
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
rm -rf "$OutputPath/osx-x64/*.pdb"
|
||||||
|
rm -rf "$OutputPath/osx-arm64/*.pdb"
|
||||||
|
|
||||||
|
echo 'Build done'
|
||||||
|
|
||||||
|
ls $OutputPath
|
||||||
|
7z a v2rayN-osx.zip $OutputPath
|
||||||
|
exit 0
|
Loading…
Reference in a new issue