mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
Add manually triggered iOS Store Release and Android Store Release workflows with the same local release commands. Derive store versions and OpenAI release notes at build time, retain recovery artifacts, and avoid generated metadata commits. Pin queued releases to their dispatch commit, qualify native iOS behavior before signing, and improve Android screenshots and interrupted artifact recovery. Validation includes focused release/planner tests, workflow and type checks, native iOS qualification, Android screenshot capture, and historical release-note exercises. CI failure attribution and remaining hosted release verification are documented in the PR. Closes #158806
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
// Android Sync Versioning script supports OpenClaw repository automation.
|
|
import path from "node:path";
|
|
import { syncAndroidVersioning } from "./lib/android-version.ts";
|
|
import { parseVersionSyncArgs } from "./lib/version-script-args.ts";
|
|
|
|
export { parseVersionSyncArgs as parseArgs } from "./lib/version-script-args.ts";
|
|
|
|
function printUsage(): void {
|
|
process.stdout.write(
|
|
"Usage: node --import tsx scripts/android-sync-versioning.ts [--write|--check] [--root dir]\n",
|
|
);
|
|
}
|
|
|
|
function main(argv = process.argv.slice(2)): number {
|
|
const options = parseVersionSyncArgs(argv);
|
|
if (options.help) {
|
|
printUsage();
|
|
return 0;
|
|
}
|
|
|
|
if (options.releaseVersion) {
|
|
throw new Error(
|
|
"Android version sync uses the pinned version; store notes come from the release artifact.",
|
|
);
|
|
}
|
|
const result = syncAndroidVersioning({ mode: options.mode, rootDir: options.rootDir });
|
|
|
|
if (options.mode === "check") {
|
|
process.stdout.write("Android versioning artifacts are up to date.\n");
|
|
} else if (result.updatedPaths.length === 0) {
|
|
process.stdout.write("Android versioning artifacts already up to date.\n");
|
|
} else {
|
|
process.stdout.write(
|
|
`Updated Android versioning artifacts:\n- ${result.updatedPaths.map((filePath) => path.relative(process.cwd(), filePath)).join("\n- ")}\n`,
|
|
);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
try {
|
|
process.exitCode = main();
|
|
} catch (error) {
|
|
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
process.exitCode = 1;
|
|
}
|