import { chmod } from "node:fs/promises" import { resolve } from "node:path" import { pathToFileURL } from "node:url" import { fileURLToPath } from "node:url" async function main(): Promise { const repoRoot = resolve(fileURLToPath(new URL(".", import.meta.url)), "..") await chmod(resolve(repoRoot, "out/main/cli.js"), 0o755) } if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) { void main() }