fix(desktop): ensure node-pty spawn-helper is executable

resolves issue https://x.com/dineshgadge/status/2076024678452539691
This commit is contained in:
ethernet 2026-07-13 13:22:19 -04:00
parent 7f7a40381e
commit 7fdae5d22a

View file

@ -13,6 +13,7 @@ import { createRequire } from 'node:module'
import { fileURLToPath } from 'node:url'
import { dirname, resolve, join } from 'node:path'
import {
chmodSync,
cpSync,
existsSync,
mkdirSync,
@ -115,6 +116,7 @@ export function stageNodePty({ platform = process.platform, arch = process.arch
}
if (entry.name === 'spawn-helper') {
cpSync(join(prebuildDir, entry.name), join(destPrebuild, entry.name))
chmodSync(join(destPrebuild, entry.name), 0o775)
}
}
} else {