Skip to content

Ship a portable silent launcher instead of a local-only one - #25

Merged
JOhnsonKC201 merged 1 commit into
mainfrom
chore/portable-launcher
Aug 7, 2026
Merged

Ship a portable silent launcher instead of a local-only one#25
JOhnsonKC201 merged 1 commit into
mainfrom
chore/portable-launcher

Conversation

@JOhnsonKC201

Copy link
Copy Markdown
Owner

The run-from-source launcher was gitignored as machine-specific, because it
hard-coded C:\pixelcat twice:

sh.Run """C:\pixelcat\node_modules\electron\dist\electron.exe"" ""C:\pixelcat""", 0, False

When that folder was renamed, the desktop shortcut and the HKCU\...\Run
autostart entry both broke. The only symptom was a Windows Script Host box
saying the script file could not be found, and on login, nothing starting at
all.

It resolves the project from WScript.ScriptFullName now, so moving or
renaming the folder cannot leave it pointing at nothing, and a missing
electron reports that dependencies were never installed instead of failing
mute. That removes the reason it was local-only, so it is tracked, and it drops
the pixelcat name the rest of the app already left behind.

Worth shipping at all because npm start leaves a console window sitting
behind the pet, which is not what you want on a desktop shortcut. README says
how to point one at it.

Testing

  • Launched through wscript.exe launch-pixelpets.vbs exactly as the shortcut
    does: app starts, one main electron process on the project path
  • Missing-dependency branch produces the message box rather than a silent exit
  • npm test 127 pass, npm run lint clean

The launcher was gitignored as machine-specific because it hard-coded
C:\pixelcat twice. When that folder was renamed the desktop shortcut and
the autostart entry both broke, and the only symptom was a Windows Script
Host box saying the script file could not be found, or on login nothing
starting at all.

It resolves the project from its own location now, so moving or renaming
the folder cannot leave it pointing at nothing, and a missing electron
says the dependencies were never installed rather than failing mute.
That removes the reason it was local-only, so it is tracked, and it drops
the pixelcat name the rest of the app already left behind.

Worth having at all because `npm start` leaves a console window sitting
behind the pet, which is not what you want on a shortcut.
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pixelcat Ready Ready Preview Aug 7, 2026 6:40am

@JOhnsonKC201
JOhnsonKC201 merged commit 723f198 into main Aug 7, 2026
4 checks passed
@JOhnsonKC201
JOhnsonKC201 deleted the chore/portable-launcher branch August 7, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant