Skip to content

fix(ci): build NSIS installer alongside standalone exe#232

Merged
YCC3741 merged 1 commit intocodefrom
fix/ci-bundle-nsis
Apr 20, 2026
Merged

fix(ci): build NSIS installer alongside standalone exe#232
YCC3741 merged 1 commit intocodefrom
fix/ci-bundle-nsis

Conversation

@YCC3741
Copy link
Copy Markdown
Collaborator

@YCC3741 YCC3741 commented Apr 20, 2026

Summary

5.9.3 release 缺了 NSIS installer,雖然 src-tauri/tauri.conf.json 早就設定 "targets": ["nsis"] + offlineInstaller,但 workflow 用 tauri build -- --no-bundle 把整個 bundling 階段跳掉,所以 NSIS 從來沒被產出。論壇對外宣傳已寫「同時提供免安裝版 exe 和 NSIS 安裝版 適用於精簡版 Windows」,需要補回來。

  • Build step:-- --no-bundle-- --bundles nsis,每次 release 同時產出 standalone exe 與 NSIS installer
  • Upload files:同時包 Beanfun.exebundle/nsis/*-setup.exe
  • Release notes:Download / Installation 區塊分成 Portable / Installer 兩種選擇並標註適用情境
  • 不動 version bump 流程、不動其他 step

Test plan

  • Merge 後 revert 0c447fc 把版本回退到 5.9.2
  • 砍掉現存的 v5.9.3.2604202330 release + tag
  • 手動觸發 Build and Release workflow(branch=code, release_type=prerelease, version_increment=patch
  • 確認新 release 的 Assets 同時包含 Beanfun.exeBeanfun_5.9.3_x64-setup.exe
  • 確認 release notes 的 Download 表格兩個下載連結都能正確下載
  • 在乾淨 / 精簡版 Win10 環境試跑 NSIS installer,確認 WebView2 offline 安裝成功

The previous workflow ran `tauri build -- --no-bundle`, which skipped
the entire bundling phase. As a result the NSIS target + offlineInstaller
WebView2 mode declared in src-tauri/tauri.conf.json never produced any
artefact, and v5.9.3 shipped without the installer that the announcement
post promised.

Switch to `--bundles nsis` so each release produces both:
- src-tauri/target/release/Beanfun.exe (portable, drop-in replacement)
- src-tauri/target/release/bundle/nsis/Beanfun_<ver>_x64-setup.exe
  (offline installer that bundles WebView2 runtime for stripped-down
  Win10 / first-time installs)

Upload both artefacts to the release and document them separately in
the Download / Installation sections of the release notes.
@YCC3741 YCC3741 merged commit a5c4a37 into code Apr 20, 2026
2 checks passed
@YCC3741 YCC3741 deleted the fix/ci-bundle-nsis branch April 21, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant