Skip to content
Open
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
11 changes: 9 additions & 2 deletions apps/desktop/scripts/stage-native-deps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -72,7 +73,11 @@ function copyBuildRelease(srcDir, destDir) {
continue
}
if (entry.name === 'spawn-helper' || /\.(node|dll|exe)$/.test(entry.name)) {
cpSync(join(srcDir, entry.name), join(destDir, entry.name))
const destPath = join(destDir, entry.name)
cpSync(join(srcDir, entry.name), destPath)
if (entry.name === 'spawn-helper') {
chmodSync(destPath, 0o755)
}
}
}
}
Expand Down Expand Up @@ -114,7 +119,9 @@ export function stageNodePty({ platform = process.platform, arch = process.arch
continue
}
if (entry.name === 'spawn-helper') {
cpSync(join(prebuildDir, entry.name), join(destPrebuild, entry.name))
const destPath = join(destPrebuild, entry.name)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked #63784 reproduction reports that packaged pty.spawn still fails after this helper is mode 0755, due to a separate sealed-bundle/path interaction. Please do not treat this chmod alone as validation of the claimed macOS 26 terminal fix; retain it as the executable-mode correction and separately prove the packaged-app outcome.

cpSync(join(prebuildDir, entry.name), destPath)
chmodSync(destPath, 0o755)
}
}
} else {
Expand Down
Loading