refactor: modularize launcher UI and native services with verified IO

This commit is contained in:
emil28092005
2026-09-09 12:55:15 +03:00
parent cc19a24e45
commit cde13c4489
51 changed files with 3307 additions and 1118 deletions
+20 -3
View File
@@ -3,6 +3,9 @@ name: Cross-platform build
on:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: ${{ matrix.name }}
@@ -14,13 +17,13 @@ jobs:
os: ubuntu-22.04
args: --bundles appimage,deb
- name: Windows x64
os: windows-latest
os: windows-2022
args: --bundles nsis,msi
- name: macOS Apple Silicon
os: macos-14
os: macos-15
args: --target aarch64-apple-darwin --bundles dmg
- name: macOS Intel
os: macos-13
os: macos-15-intel
args: --target x86_64-apple-darwin --bundles dmg
runs-on: ${{ matrix.os }}
@@ -32,5 +35,19 @@ jobs:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- name: Install Linux desktop 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 test
- run: cargo test --locked --manifest-path src-tauri/Cargo.toml
- run: npm run tauri:build -- ${{ matrix.args }}
- uses: actions/upload-artifact@v4
with:
name: shacraft-${{ matrix.os }}
if-no-files-found: error
path: |
src-tauri/target/release/bundle/**
src-tauri/target/*/release/bundle/**
+32
View File
@@ -0,0 +1,32 @@
name: Launcher checks
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- name: Install Linux desktop dependencies
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 test
- run: npm run build
- run: cargo test --locked --manifest-path src-tauri/Cargo.toml