Skip to content

Commit eb3aaa6

Browse files
committed
Add MacOS build support to CI
1 parent d53b201 commit eb3aaa6

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/rust.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,46 @@ jobs:
116116
name: openfusionlauncher-linux-appimage
117117
path: src-tauri/target/release/linux-appimage/
118118

119+
build-macos:
120+
needs: build-ffrunner
121+
runs-on: macos-latest
122+
steps:
123+
- uses: actions/setup-node@v4
124+
with:
125+
node-version: lts/*
126+
127+
- name: Install Tauri CLI
128+
run: cargo install tauri-cli --version "^2.0.0" --locked
129+
130+
- uses: actions/checkout@v4
131+
132+
- name: Download ffrunner
133+
uses: actions/[email protected]
134+
with:
135+
name: ffrunner-mingw
136+
path: resources/ffrunner
137+
138+
- name: Install NPM packages
139+
run: npm install
140+
141+
- name: Ensure targets for Universal binary are present
142+
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
143+
144+
- name: Build
145+
run: cargo tauri build --bundles app dmg --target universal-apple-darwin
146+
147+
- name: Package
148+
run: |
149+
cd src-tauri/target/universal-apple-darwin/release/
150+
mkdir macos-universal
151+
mv bundle/macos/OpenFusionLauncher.app/ macos-universal
152+
mv bundle/dmg/OpenFusionLauncher_*.dmg macos-universal
153+
154+
- uses: actions/[email protected]
155+
with:
156+
name: openfusionlauncher-macos-universal
157+
path: src-tauri/target/universal-apple-darwin/release/macos-universal/
158+
119159
build-windows:
120160
needs: build-ffrunner
121161
runs-on: windows-latest

0 commit comments

Comments
 (0)