mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7942] [MERGED] fix(installer): preserve PowerShell prerequisite command quoting #8014
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8014
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7942
Author: @SpicyMarinara
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7933-windows-node-download-quote📝 Commits (5)
0d32b68chore: start Windows installer quoting fix for #7933805c764fix(installer): preserve PowerShell prerequisite command quoting4535805test(installer): show prerequisite argument mismatch diagnostics3e12441test(installer): canonicalize the Windows temporary fixture path1ff2baafix(installer): share prerequisite paths and exercise NSIS commands📊 Changes
3 files changed (+186 additions, -12 deletions)
View changed files
📝
.github/workflows/platform-artifacts.yml(+3 -0)📝
scripts/check-windows-installer-layout.mjs(+159 -1)📝
win/installer/installer.nsi(+24 -11)📄 Description
Linked issue
Closes #7933
Why this change
A fresh Windows installation with Node.js 22 reaches the automatic Node.js upgrade and stops with
The string is missing the terminator: ". The inline PowerShell command passes nested double quotes through both NSIS andcmd.exe; the same fragile quoting affects Git downloads and installer verification.What changed
$TEMP. Pass that path to PowerShell through an environment variable, and reuse the same NSIS variable for execution and cleanup. Environment publication failure aborts. Paths containing spaces, apostrophes or shell punctuation remain data.nsExec::ExecToLogcommand lines and path-publication helper. A short preamble loads external HTTP/hash/signature stubs; positive download/verification and rejected hash/signature controls remain in place. The harness gives PowerShell a different inherited temporary directory after NSIS resolves$TEMP, covering the fallback mismatch.Validation
Current source revision:
1ff2baa4a6f50fdea1575b587191d8445ea3c5b4.pnpm installand fullpnpm checkpassed on the follow-up (existing hook/build warnings; no errors).pnpm regression:launcher-updatepassed with official PowerShell 7.6.7 for macOS arm64, including URI/path/switch assertions, special path characters, differing inherited temporary paths and hash/signature failure controls.3e1244187GetTempPath implementation with the expected download-path identity mismatch. It also rejects the original nested command form.pnpm version:check, focused Prettier andgit diff --checkpassed.3e1244187were accepted: the earlier direct PowerShell check omitted NSIS/nsExec argument expansion, and NSIS can fall back to Windows Temp without updating inherited TEMP/TMP. The compiled harness and one resolved path address those findings.Human verification remains unchecked:
Manual verification notes
No interactive Windows installation was performed. Network downloads, MSI/Git execution and UAC prompts are outside the stubbed command proof. The Windows harness executes the compiled NSIS/nsExec prerequisite download/verification boundary only; compilation alone is not reported as runtime success.
Docs and release impact
The existing installation instructions already describe automatic prerequisite installation, which this fix restores. Reviewed README, Android README, CONTRIBUTING, configuration, troubleshooting, FAQ and Windows installation guidance; no user-facing instructions change. No version bump or CHANGELOG edit.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.