[v3] Fix Windows package task failure#4668
Conversation
WalkthroughReplaced a shell-based conditional with Taskfile templating in the Windows package task and added an OS-aware path-separator conditional to the NSIS installer task; updated Unreleased changelog entry to record the fix. Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as wails3 CLI
participant Taskfile as Taskfile (package)
participant Task as Task Runner
participant NSIS as makensis
CLI->>Taskfile: run `package`
Taskfile->>Task: evaluate templated conditional
alt FORMAT == "msix"
Task->>Task: invoke `create:msix:package`
else FORMAT == "nsis"
Task->>Task: invoke `create:nsis:installer`
Task->>Task: evaluate OS conditional for path separators
Task->>NSIS: makensis -DARG_WAILS_..._BINARY="<path with \\ or />" project.nsi
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks 🙏 Please could you add an entry to the changelog located at |
|
No problem, just updated it. |
|
* Fix package task incompatibility * Update UNRELEASED_CHANGELOG.md



Description
Fixes
packageandcreate:nsis:installertasks within the default windows/Taskfile.yml, which both fail when run on Windows host machines.Fixes #4667
Type of change
Please select the option that is relevant.
How Has This Been Tested?
I initialized a new project with this branch's changes. NSIS packaging succeeds on both macOS 12.6 and Windows 10 dev environments. This change should not impact MSIX packages.
If you checked Linux, please specify the distro and version.
Test Configuration
Checklist:
website/src/pages/changelog.mdxwith details of this PRSummary by CodeRabbit
Bug Fixes
Chores