mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5645] Manual-update command is unusable in Windows PowerShell (the default Windows shell) #3125
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#3125
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?
Originally created by @kolacheee on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5645
Originally assigned to: @kolacheee on GitHub.
What happens
When a git install can't apply updates from the browser (
UPDATES_APPLY_ENABLEDoff), the app shows "Update manually with:git fetch … && … || … && corepack pnpm … && …" — one long command chained with&&and||. A Windows tester switching to the staging channel copied it into their terminal and got a wall of red parser errors:Nothing ran at all. The default shell on Windows (what opens in Windows Terminal, and what most testers will use) is Windows PowerShell 5.1, which does not support
&&/||between commands — that syntax only works in cmd, Git Bash, or PowerShell 7+. So the manual-update instruction is unusable as-pasted for the majority of Windows testers, exactly the audience the staging channel targets.This happened to a real beta tester today; the workaround (run it in Git Bash or cmd instead) worked, but nothing in the message tells them that.
A second gap surfaced in the same support exchange: the command assumes the user's terminal is already sitting in the repo checkout, but many users don't know how to
cdthere — or where their install even lives. The tester needed a separate instruction just to get toD:\Marinara-Enginebefore the command could be attempted at all.Try it yourself
On Windows: open Windows PowerShell (5.1, the default "Windows PowerShell" entry, not PowerShell 7), paste any
a && bcommand — parser error. Then in the app with a git install and browser-apply disabled, open Settings → check for updates on the staging channel and note the printed command uses&&/||throughout.Where to look
packages/server/src/routes/updates.routes.ts—getManualGitApplyCommand(channel, platform, pnpmCommand)(line ~197) builds the one-liner. It already takesplatform(the build step varies for android-termux) but the chaining syntax is POSIX regardless of platform. The message is emitted at line ~989 and also surfaces in the client atSettingsPanel.tsx~7865.Suggested direction (either works)
platform === "windows", prefix the hint with where to run it ("Run this in Git Bash or Command Prompt — Windows PowerShell rejects&&"), since both of those accept the existing command unchanged; or&&gating matters (a failed checkout must not proceed to install/build), so a PowerShell-safe single line would need explicitif ($LASTEXITCODE -ne 0) { exit }checks — probably more trouble than the two options above.In both variants, the hint should also detect the install path and lead with the
cdcommand. The server is running from the repo checkout, so it already knows the absolute path (the same repo root the route hands to its git helpers) — print it as the first step, in the right form for the target shell:cd /d "D:\Marinara-Engine"for cmd (the/dmatters when the install is on another drive),cd "D:\Marinara-Engine"for Git Bash/POSIX shells. That turns the hint into a complete copy-paste recipe instead of assuming the user knows where their install lives.Found while helping a beta tester through the staging switch (2026-08-29).