mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
* feat(mobile): add dedicated version contract Punchcard-Session: quiet-brook-meadow-cb * fix(mobile): repair version contract checks Punchcard-Session: calm-meadow-summit-7q
25 lines
734 B
TypeScript
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);
|
|
}
|
|
}
|