Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
:art: Simplify the logic of actions and fix the Mac environment
Tw93c1938e9fa62d
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.ymlindex 6960a151..029b4aed 100644--- a/.github/actions/setup-env/action.yml+++ b/.github/actions/setup-env/action.yml@@ -1,13 +1,15 @@name: Setup Development Environment-description: One-stop setup with smart presets--# Modes: full (default), node-only, rust-only, build (with cache)+description: Unified environment setup with Node.js, Rust, and system dependenciesinputs:mode:- description: "Setup mode: full, node-only, rust-only, or build"+ description: |+ Setup mode:+ - build: Complete environment (Node + Rust + System deps + Cache)+ - node: Node.js only (pnpm + Node 22)+ - rust: Rust only (toolchain + targets)required: false- default: "full"+ default: "build"outputs:setup-complete:@@ -17,7 +19,7 @@ outputs:runs:using: compositesteps:- # 1. Setup environment flags+ # Parse mode and set environment flags- name: Setup environment flagsshell: bashrun: |@@ -25,33 +27,28 @@ runs:# Validate and set flags in one passcase "$MODE" in- full)+ build|full)echo "SETUP_NODE=true" >> $GITHUB_ENVecho "SETUP_RUST=true" >> $GITHUB_ENVecho "SETUP_SYSTEM=true" >> $GITHUB_ENV;;- node-only)+ node|node-only)echo "SETUP_NODE=true" >> $GITHUB_ENVecho "SETUP_RUST=false" >> $GITHUB_ENVecho "SETUP_SYSTEM=false" >> $GITHUB_ENV;;- rust-only)+ rust|rust-only)echo "SETUP_NODE=false" >> $GITHUB_ENVecho "SETUP_RUST=true" >> $GITHUB_ENVecho "SETUP_SYSTEM=false" >> $GITHUB_ENV;;- build)- echo "SETUP_NODE=true" >> $GITHUB_ENV- echo "SETUP_RUST=true" >> $GITHUB_ENV- echo "SETUP_SYSTEM=true" >> $GITHUB_ENV- ;;*)- echo "❌ Invalid mode: '$MODE'. Valid modes: full, node-only, rust-only, build"+ echo "❌ Invalid mode: '$MODE'. Valid modes: build, node, rust"exit 1;;esac- # 2. Node.js Environment Setup+ # Node.js Environment Setup- name: Install pnpmif: env.SETUP_NODE == 'true'uses: pnpm/action-setup@v4@@ -71,7 +68,7 @@ runs:shell: bashrun: pnpm install --frozen-lockfile- # 3. Rust Environment Setup+ # Rust Environment Setup- name: Setup Rust for Linuxif: env.SETUP_RUST == 'true' && runner.os == 'Linux'uses: dtolnay/rust-toolchain@stable@@ -99,7 +96,7 @@ runs:rustup target add x86_64-apple-darwinrustup target add aarch64-apple-darwin- # 4. System Dependencies+ # System Dependencies- name: Install Ubuntu dependenciesif: env.SETUP_SYSTEM == 'true' && runner.os == 'Linux'uses: awalsh128/[email protected]@@ -140,7 +137,7 @@ runs:exit 1}- # 5. Build optimizations (caching)+ # Build optimizations (caching)- name: Setup Rust cacheif: inputs.mode == 'build'uses: actions/cache@v4diff --git a/.github/workflows/quality-and-test.yml b/.github/workflows/quality-and-test.ymlindex a7dd3fc2..0ccc5848 100644--- a/.github/workflows/quality-and-test.yml+++ b/.github/workflows/quality-and-test.yml@@ -33,6 +33,8 @@ jobs:- name: Setup Development Environmentuses: ./.github/actions/setup-env+ with:+ mode: node- name: Auto-fix Prettier formattingrun: npx prettier --write . --ignore-unknown@@ -175,29 +177,13 @@ jobs:steps:- name: Generate Summaryrun: |- echo "# Quality & Testing Summary" >> $GITHUB_STEP_SUMMARY- echo "" >> $GITHUB_STEP_SUMMARY-- if [ "${{ needs.auto-format.result }}" == "success" ]; then- echo "✅ **Auto Formatting**: PASSED" >> $GITHUB_STEP_SUMMARY- else- echo "❌ **Auto Formatting**: FAILED" >> $GITHUB_STEP_SUMMARY- fi-- if [ "${{ needs.rust-quality.result }}" == "success" ]; then- echo "✅ **Rust Quality**: PASSED" >> $GITHUB_STEP_SUMMARY- else- echo "❌ **Rust Quality**: FAILED" >> $GITHUB_STEP_SUMMARY- fi-- if [ "${{ needs.cli-tests.result }}" == "success" ]; then- echo "✅ **CLI Tests**: PASSED" >> $GITHUB_STEP_SUMMARY- else- echo "❌ **CLI Tests**: FAILED" >> $GITHUB_STEP_SUMMARY- fi-- if [ "${{ needs.release-build-test.result }}" == "success" ]; then- echo "✅ **Release Build Test**: PASSED" >> $GITHUB_STEP_SUMMARY- else- echo "❌ **Release Build Test**: FAILED" >> $GITHUB_STEP_SUMMARY- fi+ {+ echo "# Quality & Testing Summary"+ echo ""+ echo "| Check | Status |"+ echo "|-------|--------|"+ echo "| Auto Formatting | ${{ needs.auto-format.result == 'success' && 'PASSED' || 'FAILED' }} |"+ echo "| Rust Quality | ${{ needs.rust-quality.result == 'success' && 'PASSED' || 'FAILED' }} |"+ echo "| CLI Tests | ${{ needs.cli-tests.result == 'success' && 'PASSED' || 'FAILED' }} |"+ echo "| Release Build | ${{ needs.release-build-test.result == 'success' && 'PASSED' || 'FAILED' }} |"+ } >> $GITHUB_STEP_SUMMARYdiff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yamlindex 1746d3f1..9c61d689 100644--- a/.github/workflows/single-app.yaml+++ b/.github/workflows/single-app.yaml@@ -76,7 +76,7 @@ jobs:- name: Setup Node.js Environmentuses: ./.github/actions/setup-envwith:- mode: ${{ matrix.build == 'linux' && 'full' || 'node-only' }}+ mode: ${{ (matrix.build == 'linux' || matrix.build == 'macos') && 'build' || 'node' }}- name: Rust cache restoreuses: actions/cache/[email protected]