openclaw/scripts/android-pin-version.ts
Vincent Koc 924874b976
feat(mobile): add dedicated version contract (#136366)
* feat(mobile): add dedicated version contract

Punchcard-Session: quiet-brook-meadow-cb

* fix(mobile): repair version contract checks

Punchcard-Session: calm-meadow-summit-7q
2026-09-03 04:53:27 +08:00

25 lines
734 B
TypeScript

// Android pinning is retired; the shared mobile cutter owns release metadata.
import { isDirectRunUrl } from "./lib/direct-run.mjs";
const RETIRED_MESSAGE =
"Android version pinning is retired. Run the shared mobile cutter in scripts/mobile-release-version.ts.";
function printUsage(): void {
process.stdout.write(`${RETIRED_MESSAGE}\n`);
}
export async function main(argv: string[]): Promise<number> {
if (argv.includes("-h") || argv.includes("--help")) {
printUsage();
return 0;
}
process.stderr.write(`${RETIRED_MESSAGE}\n`);
return 1;
}
if (isDirectRunUrl(process.argv[1], import.meta.url)) {
const exitCode = await main(process.argv.slice(2));
if (exitCode !== 0) {
process.exit(exitCode);
}
}