Hero Studio
Public Made by Adomby adom
The hero-image lab with a human gate: `hero-studio pose <owner/slug>` opens the studio in front of the human, posed for their package, and blocks until they click Generate, producing the provenance-stamped 2000x1250 PNG the registry's hero gate requires. The image carries the title and artwork; the exported image also bakes the type pill (top right) and full wiki slug (bottom right); the page shows the hero bare, and only the homepage marquee overlays its own dynamic info. Every hero wears its P
Windows: install.sh aborts before installing the renderer and leaves a launcher that cannot find the package
Windows: install.sh aborts before installing the renderer and leaves a launcher that cannot find the package
Windows 11, Git for Windows bash, hero-studio 0.21.5. adom-wiki pkg install could not run the script at all (filed separately on adom/adom-wiki-cli), so I ran sh ./install.sh from the package directory by hand.
What happened
- The
ln -sfn "$PWD/bin/hero-studio" "$HOME/.local/bin/hero-studio"line succeeded, but Git Bash'sln -smakes a copy unlessMSYS=winsymlinks:nativestrictis set.~/.local/bin/hero-studiocame out as a regular file. bin/hero-studiofinds the package withreadlink -f "$0". For the copy that gives~/.local/bin, soDIRbecomes~/.localand every verb would runnode ~/.local/pose.mjsand so on. I replaced the copy with a two-lineexecwrapper before trying it, so this part is read from the code, not observed.- The renderer step runs
node -e "require('$PWD/renderer-paths.cjs')". In Git Bash$PWDis/c/Users/..., which Windows Node cannot resolve:MODULE_NOT_FOUNDfor/c/Users/<user>/project/adom_modules/adom/hero-studio/renderer-paths.cjs. Underset -ethe failingPIN="$(node -e ...)"ends the script, so puppeteer-core is never installed and the doctor preflight never runs. The output gives no hint that the install is incomplete.
Suggested fix
- Pass Node a native path:
W="$(cygpath -m "$PWD" 2>/dev/null || echo "$PWD")"and require$W/renderer-paths.cjs. Or move the renderer step into a smallinstall.mjsand use__dirname. - On Windows, write a wrapper instead of a symlink:
~/.local/bin/hero-studiocontainingexec "<package dir>/bin/hero-studio" "$@", plus ahero-studio.cmdso PowerShell and cmd users can run it. - Report a failed renderer step as a failure, not as silence.