fix(desktop): ensure node-pty spawn-helper is executable
resolves issue https://x.com/dineshgadge/status/2076024678452539691
This commit is contained in:
parent
7f7a40381e
commit
7fdae5d22a
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue