Files
openworker/harness/examples/quickstart/scripts/bundle-runtime.mjs
Rohit Prasad 1bdb1be02f Prepare OpenWorker SDK and app-building skills for npm (#847)
Rename the SDK to `@openworkerai/harness-sdk` and update its matching runtime packages. Add `@openworkerai/build-with-sdk-skills` so developers can install Desktop and Web app guidance for Codex or Claude Code without cloning this repository.

Update the examples and documentation. Fix Windows release archives and dependency setup on clean runners, and qualify native packages in release mode.

Local package and skill installation, the streamed Desktop example, and native release tests passed on macOS ARM64. npm publication is handled separately.
2026-11-06 14:28:38 -08:00

14 lines
467 B
JavaScript

import { resolveRuntimeExecutable } from "@openworkerai/harness-sdk";
import { mkdir, copyFile, chmod } from "node:fs/promises";
import { join } from "node:path";
const source = process.env.OPENWORKER_EXECUTABLE || resolveRuntimeExecutable();
const target = join(
"bin",
process.platform === "win32"
? "openworker-harness.exe"
: "openworker-harness",
);
await mkdir("bin", { recursive: true });
await copyFile(source, target);
await chmod(target, 0o755);