From 49a045ce55a01b132a408b19f1c2a0af4346b853 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 28 Aug 2023 20:05:50 +0800 Subject: [PATCH] :bug: update build single app --- .github/workflows/pake_build_single_app.yaml | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pake_build_single_app.yaml b/.github/workflows/pake_build_single_app.yaml index 2414c1f..14aad73 100644 --- a/.github/workflows/pake_build_single_app.yaml +++ b/.github/workflows/pake_build_single_app.yaml @@ -98,7 +98,7 @@ jobs: URL: ${{ inputs.url }} run: | npm install - node ./script/build_with_pake_cli.js + npm run build:config - name: Build for Ubuntu if: matrix.os == 'ubuntu-latest' @@ -108,7 +108,7 @@ jobs: mv src-tauri/target/release/bundle/deb/*.deb output/linux/${{inputs.title}}_`arch`.deb mv src-tauri/target/release/bundle/appimage/*.AppImage output/linux/"${{inputs.title}}"_`arch`.AppImage - - name: Build for Macos + - name: Build for macOS if: matrix.os == 'macos-latest' run: | rustup target add aarch64-apple-darwin diff --git a/package.json b/package.json index b7de62f..bfe2225 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "build": "npm run tauri build --release", "build:debug": "npm run tauri build -- --debug", "build:mac": "npm run tauri build -- --target universal-apple-darwin", + "build:config": "chmod +x ./script/build_with_app_config.js && node ./script/build_with_app_config.js", "analyze": "cd src-tauri && cargo bloat --release --crates", "tauri": "tauri", "cli": "rollup -c rollup.config.js --watch",