mirror of
https://github.com/andrewyng/openworker.git
synced 2026-11-20 20:37:44 +00:00
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.
14 lines
467 B
JavaScript
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);
|