Skip to content

Commit

Permalink
Compile universal macOS binary
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamVenner committed Jun 20, 2024
1 parent c2f6b30 commit 8e1c9bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ jobs:
run: npm install

- name: Build
run: npm run tauri build -- -v
run: npm run tauri build -- --target universal-apple-darwin -v

- name: Copy Steamworks SDK to bundle
run: cp src-tauri/lib/steam_api/redistributable_bin/osx/libsteam_api.dylib src-tauri/target/release/bundle/macos/gmpublisher.app/Contents/MacOS/libsteam_api.dylib
run: cp src-tauri/lib/steam_api/redistributable_bin/osx/libsteam_api.dylib src-tauri/target/universal-apple-darwin/release/bundle/macos/gmpublisher.app/Contents/MacOS/libsteam_api.dylib

- name: Prepare ZIP
run: |
cd src-tauri/target/release/bundle/macos
cd src-tauri/target/universal-apple-darwin/release/bundle/macos
zip -r gmpublisher_macOS.app.zip gmpublisher.app
- name: Release
uses: softprops/action-gh-release@v1
with:
files: src-tauri/target/release/bundle/macos/gmpublisher_macOS.app.zip
files: src-tauri/target/universal-apple-darwin/release/bundle/macos/gmpublisher_macOS.app.zip
fail_on_unmatched_files: true

0 comments on commit 8e1c9bd

Please sign in to comment.