Skip to content

Commit

Permalink
Fix macOS bundling giving an error (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX authored Mar 14, 2024
1 parent 81aacdd commit d53de4a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,13 @@ jobs:

- name: Build
run: |
rustup target add aarch64-apple-darwin
pnpm i
pnpm run tauri build -- "--target universal-apple-darwin"
pnpm run tauri build --target universal-apple-darwin
- name: Modify Application
run: |
cd target/release/bundle/macos/slimevr.app/Contents/MacOS
cd target/universal-apple-darwin/release/bundle/macos/slimevr.app/Contents/MacOS
cp $( git rev-parse --show-toplevel )/server/desktop/build/libs/slimevr.jar ./
cd ../../../../dmg/
./bundle_dmg.sh --volname slimevr --icon slimevr 180 170 --app-drop-link 480 170 \
Expand All @@ -271,17 +272,17 @@ jobs:
- uses: actions/[email protected]
with:
name: SlimeVR-GUI-MacApp
path: target/release/bundle/macos/slimevr*.app
path: target/universal-apple-darwin/release/bundle/macos/slimevr*.app

- uses: actions/[email protected]
with:
name: SlimeVR-GUI-MacDmg
path: target/release/bundle/dmg/slimevr.dmg
path: target/universal-apple-darwin/release/bundle/dmg/slimevr.dmg

- name: Prepare for release
if: startsWith(github.ref, 'refs/tags/')
run: |
cp target/release/bundle/dmg/slimevr.dmg ./SlimeVR-mac.dmg
cp target/universal-apple-darwin/release/bundle/dmg/slimevr.dmg ./SlimeVR-mac.dmg
- name: Upload to draft release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit d53de4a

Please sign in to comment.