Revert "update build macos"

This reverts commit a57c83125e.
pull/6333/head
2dust 2024-12-23 13:59:55 +08:00
parent a57c83125e
commit c78b733850
2 changed files with 10 additions and 16 deletions

View File

@ -25,13 +25,8 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: v2rayN-macos-64
name: v2rayN-osx
path: |
./v2rayN/v2rayN-macos-64.zip
./v2rayN/v2rayN-osx.zip
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: v2rayN-macos-arm64
path: |
./v2rayN/v2rayN-macos-arm64.zip

View File

@ -2,17 +2,16 @@
echo 'Building'
OutputPath='./bin/v2rayN/osx-x64'
OutputPathArm64='./bin/v2rayN/osx-arm64'
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
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r osx-arm64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o $OutputPathArm64
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/*.pdb"
rm -rf "$OutputPathArm64/*.pdb"
rm -rf "$OutputPath/osx-x64/*.pdb"
rm -rf "$OutputPath/osx-arm64/*.pdb"
echo 'Build done'
7z a v2rayN-macos-64.zip $OutputPath
7z a v2rayN-macos-arm64.zip $OutputPathArm64
ls $OutputPath
7z a v2rayN-osx.zip $OutputPath
exit 0