mirror of https://github.com/2dust/v2rayN
Modify the build macos script
parent
199d87ba84
commit
7375e1a490
|
@ -21,14 +21,17 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd v2rayN
|
cd v2rayN
|
||||||
chmod 755 build-osx.sh
|
OutputPath='./bin/v2rayN'
|
||||||
./build-osx.sh
|
OutputPath64="${OutputPath}/osx-x64"
|
||||||
|
OutputPathArm64="${OutputPath}/osx-arm64"
|
||||||
|
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r osx-x64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o $OutputPath64
|
||||||
|
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r osx-arm64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o $OutputPathArm64
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: v2rayN-osx
|
name: v2rayN-osx
|
||||||
path: |
|
path: |
|
||||||
./v2rayN/v2rayN-osx.zip
|
./v2rayN/bin/v2rayN
|
||||||
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
echo 'Building macOS'
|
|
||||||
|
|
||||||
OutputPath='./bin/v2rayN'
|
|
||||||
OutputPath64="${OutputPath}/osx-x64"
|
|
||||||
OutputPathArm64="${OutputPath}/osx-arm64"
|
|
||||||
|
|
||||||
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r osx-x64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o $OutputPath64
|
|
||||||
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r osx-arm64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o $OutputPathArm64
|
|
||||||
|
|
||||||
rm -rf "$OutputPath64/*.pdb"
|
|
||||||
rm -rf "$OutputPathArm64/*.pdb"
|
|
||||||
|
|
||||||
echo 'Build done'
|
|
||||||
|
|
||||||
7z a v2rayN-osx.zip $OutputPath
|
|
||||||
exit 0
|
|
Loading…
Reference in New Issue