mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #281] [MERGED] fix(launcher): correct installDir resolution and unblock auto-update #4541
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#4541
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/281
Author: @LukaTheHero
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @LukaTheHero
Base:
main← Head:fix/launcher-migration-pathing-and-conflict📝 Commits (1)
e39471cfix(launcher): correct installDir resolution and unblock auto-update📊 Changes
2 files changed (+12 additions, -1 deletions)
View changed files
📝
packages/server/src/app.ts(+2 -1)📝
start.bat(+10 -0)📄 Description
Two bugs in the taskbar-launcher migration shipped in #277:
installDir off-by-one.
app.tsresolved the install root by walking 4 levels up fromdist/, which lands one directory too high (e.g.AppData\Localinstead ofAppData\Local\MarinaraEngine). The migration then couldn't findMarinaraLauncher.exeand silently skipped, leaving the Start Menu shortcut still targetingstart.bat. Three levels up is correct —<INSTDIR>/packages/server/dist→ 3 →<INSTDIR>.app-icon.icocollision blocksgit pull. The original installer wroteapp-icon.icointo$INSTDIRas an untracked file. #277 addedapp-icon.icoto the repo at the same path, sogit merge --ff-onlyinstart.batrefuses to overwrite the untracked copy and the auto-update silently fails (user stays at the previous commit forever).start.batnow drops the untrackedapp-icon.icobefore merging if (and only if) it's not yet tracked locally — the repo copy is byte-identical to what the installer wrote, so this is non-destructive. Once a user has pulled successfully, the file becomes tracked and the cleanup is a permanent no-op.Currently-stuck users on pre-#277 HEAD need a one-time manual fix before their
start.batwill pick up the patch:Linked issue
Closes #
Why this change
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.