@vantaloom/runtime-darwin-arm64 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/package.json +1 -1
- package/cli/src/cli.mjs +9 -0
- package/package.json +1 -1
package/cli/package.json
CHANGED
package/cli/src/cli.mjs
CHANGED
|
@@ -227,6 +227,15 @@ async function applyPackage(packageRoot, prefix, options) {
|
|
|
227
227
|
})
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
// Ensure binaries are executable on Unix (cross-compiled from Windows they lose +x)
|
|
231
|
+
if (process.platform !== "win32") {
|
|
232
|
+
const binDir = path.join(prefix, "bin")
|
|
233
|
+
for (const entry of readdirSync(binDir)) {
|
|
234
|
+
const binPath = path.join(binDir, entry)
|
|
235
|
+
try { chmodSync(binPath, 0o755) } catch {}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
230
239
|
await writeLauncher(prefix)
|
|
231
240
|
await writeText(path.join(prefix, "cli", "config.json"), `${JSON.stringify(mergedConfig, null, 2)}\n`)
|
|
232
241
|
await writeText(path.join(prefix, "VERSION"), `${version}\n`)
|