Nope, no tauri, I'll just build a seperate launcher for each platform. #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build for Desktop | |
on: | |
push: | |
branches: ["**"] | |
pull_request: | |
branches: ["**"] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Update apt repositories | |
run: sudo apt update | |
- name: Download prerequisite apt packages | |
run: sudo apt install | |
libwebkit2gtk-4.1-dev | |
build-essential | |
curl | |
wget | |
file | |
libxdo-dev | |
libssl-dev | |
libayatana-appindicator3-dev | |
librsvg2-dev | |
- run: npm install | |
- run: npm run build-tauri-x64-linux | |
- name: Upload Output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: game3d | |
path: | | |
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb | |
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm | |
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage | |
build-macos: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: npm install | |
- run: npm run build-tauri-arm64-macos | |
- name: Upload Output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: game3d | |
path: | | |
src-tauri/target/aarch64-apple-darwin/release/bundle/macos/game3d.app/** | |
src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg | |
build-windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: npm install | |
- run: npm run build-tauri-x64-windows | |
- name: Upload Output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: game3d | |
path: | | |
src-tauri\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi | |
src-tauri\target\x86_64-pc-windows-msvc\release\bundle\nsis\*.exe |