fix(ci): build NSIS installer alongside standalone exe#232
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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」,需要補回來。-- --no-bundle→-- --bundles nsis,每次 release 同時產出 standalone exe 與 NSIS installerfiles:同時包Beanfun.exe與bundle/nsis/*-setup.exeTest plan
0c447fc把版本回退到 5.9.2v5.9.3.2604202330release + tagBuild and Releaseworkflow(branch=code, release_type=prerelease, version_increment=patch)Beanfun.exe與Beanfun_5.9.3_x64-setup.exe