From 0f683459afa64a59bd734ebc8e9dc2a4c02db10a Mon Sep 17 00:00:00 2001 From: gcw_VNOUEmGJ Date: Sun, 8 Mar 2026 22:00:00 +0800 Subject: [PATCH] feat(ci): add installer for windows --- .github/workflows/desktop-package.yml | 9 +++++++-- .github/workflows/nightly.yml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/desktop-package.yml b/.github/workflows/desktop-package.yml index 8d7ab179..2036c10a 100644 --- a/.github/workflows/desktop-package.yml +++ b/.github/workflows/desktop-package.yml @@ -86,7 +86,7 @@ jobs: - os: windows-latest name: windows-x64 target: x86_64-pc-windows-msvc - build_command: npm run desktop:build:nsis + build_command: npm run installer:build steps: - name: Checkout @@ -113,6 +113,10 @@ jobs: - name: Install dependencies run: npm ci + - name: Install installer dependencies + if: matrix.platform.name == 'windows-x64' + run: npm --prefix BitFun-Installer ci + - name: Build desktop app run: ${{ matrix.platform.build_command }} @@ -125,6 +129,7 @@ jobs: target/*/release/bundle target/release/bundle src/apps/desktop/target/release/bundle + BitFun-Installer/src-tauri/target/release/bitfun-installer.exe # ── Upload assets to GitHub Release ──────────────────────────────── upload-release-assets: @@ -152,5 +157,5 @@ jobs: tag_name: ${{ needs.prepare.outputs.release_tag }} files: | release-assets/**/*.dmg - release-assets/**/*setup.exe + release-assets/**/*bitfun-installer.exe fail_on_unmatched_files: true diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 246c872a..70ae0845 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -83,7 +83,7 @@ jobs: - os: windows-latest name: windows-x64 target: x86_64-pc-windows-msvc - build_command: npm run desktop:build:nsis + build_command: npm run installer:build steps: - uses: actions/checkout@v4 @@ -107,6 +107,10 @@ jobs: - name: Install dependencies run: npm ci + - name: Install installer dependencies + if: matrix.platform.name == 'windows-x64' + run: npm --prefix BitFun-Installer ci + - name: Patch nightly version shell: bash env: @@ -146,6 +150,7 @@ jobs: target/*/release/bundle target/release/bundle src/apps/desktop/target/release/bundle + BitFun-Installer/src-tauri/target/release/bitfun-installer.exe # ── Publish nightly pre-release ──────────────────────────────────── publish-nightly: @@ -191,4 +196,4 @@ jobs: prerelease: true files: | release-assets/**/*.dmg - release-assets/**/*setup.exe + release-assets/**/*bitfun-installer.exe