Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ previews/
# Local code intelligence (CodeGraph index)
.codegraph/

# Local-only launcher + unrelated coursework kept in this folder
launch-pixelcat.vbs
# Unrelated coursework kept in this folder
CODEPATH Proj/

# OS
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Notable changes to **pixelpets**. All art and sound are original/procedural (no

### Added
- **`--shot --note="<text>"`** pins a speech bubble open in a preview capture, so wrapping and edge clamping can be checked against a real font.
- **`launch-pixelpets.vbs`**, a silent Windows launcher for running from source, is now part of the repo instead of a local-only file. `npm start` leaves a console window sitting behind the pet, which is why a shortcut wants this instead. It resolves the project from its own location rather than a hard-coded path, so moving or renaming the folder cannot leave the shortcut pointing at nothing, and it says what is wrong if dependencies were never installed rather than failing silently.

## [0.3.0] - 2026-08-03

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ Either way your pet appears in the corner and registers itself to start at login
`npm run autostart:off` turns that off, and the installed version uninstalls like
any other program, from Windows Settings > Apps.

> **Windows, running from source:** `npm start` leaves a console window open behind
> the pet. `launch-pixelpets.vbs` starts the same thing silently, so it works as a
> desktop shortcut (point one at `wscript.exe "<path>\launch-pixelpets.vbs"`). It
> locates the project from its own path, so moving the folder does not break it.

> **macOS (beta):** same commands. On first run, grant Accessibility permission
> (System Settings > Privacy & Security > Accessibility) so your pet can react to your
> typing and cursor. Input is only detected, never logged or sent anywhere. The mac
Expand Down
22 changes: 22 additions & 0 deletions launch-pixelpets.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
' Silent launcher for pixelpets (runs the app from source with the latest code, no
' packaging needed). Launched by the desktop shortcut. Window style 0 = hidden.
'
' Paths are derived from THIS script's own location instead of being hard-coded, so
' moving or renaming the project folder cannot silently break the launcher again -
' which is exactly what happened when C:\pixelcat became C:\pixel_pet.
Set fso = CreateObject("Scripting.FileSystemObject")
root = fso.GetParentFolderName(WScript.ScriptFullName)
electron = fso.BuildPath(root, "node_modules\electron\dist\electron.exe")

' Say what is wrong rather than failing mute: a missing electron means the deps were
' never installed in this copy, which looks identical to "the pet just didn't start".
If Not fso.FileExists(electron) Then
MsgBox "pixelpets could not start: electron is missing at" & vbCrLf & vbCrLf & _
electron & vbCrLf & vbCrLf & "Run npm install in " & root & vbCrLf, _
vbExclamation, "pixelpets"
WScript.Quit 1
End If

Set sh = CreateObject("WScript.Shell")
sh.CurrentDirectory = root
sh.Run """" & electron & """ """ & root & """", 0, False