f8698fa3bc
Build the CLI as a production artifact, expose a package bin, generate shared app version metadata, rename the local state file to legion-state.json, and include readable appVersion metadata in the encrypted state envelope. Also updates README feature/setup documentation and commits all current repository changes requested for this Legion patch.
14 lines
438 B
TypeScript
14 lines
438 B
TypeScript
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<void> {
|
|
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()
|
|
}
|