ci: build and upload all desktop packages
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
|||||||
os: macos-14
|
os: macos-14
|
||||||
args: --target aarch64-apple-darwin --bundles dmg
|
args: --target aarch64-apple-darwin --bundles dmg
|
||||||
- name: macOS Intel
|
- name: macOS Intel
|
||||||
os: macos-13
|
os: macos-15-intel
|
||||||
args: --target x86_64-apple-darwin --bundles dmg
|
args: --target x86_64-apple-darwin --bundles dmg
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -34,6 +34,11 @@ jobs:
|
|||||||
node-version: 22
|
node-version: 22
|
||||||
cache: npm
|
cache: npm
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: Install Linux system dependencies
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run tauri:build -- ${{ matrix.args }}
|
- run: npm run tauri:build -- ${{ matrix.args }}
|
||||||
- name: Upload Windows installers
|
- name: Upload Windows installers
|
||||||
@@ -45,3 +50,19 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
src-tauri/target/release/bundle/nsis/*.exe
|
src-tauri/target/release/bundle/nsis/*.exe
|
||||||
src-tauri/target/release/bundle/msi/*.msi
|
src-tauri/target/release/bundle/msi/*.msi
|
||||||
|
- name: Upload Linux packages
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: shacraft-launcher-linux-x64
|
||||||
|
if-no-files-found: error
|
||||||
|
path: |
|
||||||
|
src-tauri/target/release/bundle/appimage/*.AppImage
|
||||||
|
src-tauri/target/release/bundle/deb/*.deb
|
||||||
|
- name: Upload macOS package
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: shacraft-launcher-${{ matrix.name == 'macOS Apple Silicon' && 'macos-arm64' || 'macos-x64' }}
|
||||||
|
if-no-files-found: error
|
||||||
|
path: src-tauri/target/*/release/bundle/dmg/*.dmg
|
||||||
|
|||||||
Reference in New Issue
Block a user