Skip to content

Fix node-pty spawn-helper executable permissions#23

Open
OuyangMr wants to merge 1 commit into
alchaincyf:masterfrom
OuyangMr:node-pty-spawn-helper-perms
Open

Fix node-pty spawn-helper executable permissions#23
OuyangMr wants to merge 1 commit into
alchaincyf:masterfrom
OuyangMr:node-pty-spawn-helper-perms

Conversation

@OuyangMr

Copy link
Copy Markdown

Summary

  • Add a postinstall helper that restores executable bits on node-pty's spawn-helper.
  • Run the helper before app startup, after node-pty rebuilds, and before packaging.

Why

When node-pty's darwin spawn-helper loses its executable bit, opening FanBox's embedded terminal fails with posix_spawnp failed. This makes the terminal unusable after affected installs or dependency refreshes.

Verification

  • npm run postinstall
  • npm run predist
  • Direct node-pty.spawn('/bin/zsh') smoke test

@OuyangMr OuyangMr force-pushed the node-pty-spawn-helper-perms branch 4 times, most recently from 51a2d59 to 10c1bf5 Compare June 18, 2026 13:45
@OuyangMr OuyangMr force-pushed the node-pty-spawn-helper-perms branch from 10c1bf5 to 771386e Compare June 27, 2026 15:36
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