File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff 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+ 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+ 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
You can’t perform that action at this time.
0 commit comments