mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +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
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
// iOS release cutter promotes Unreleased notes into the planned App Store version.
|
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { cutIosReleaseChangelog, type IosReleasePlan } from "./lib/ios-release-plan.ts";
|
|
|
|
const planIndex = process.argv.indexOf("--plan");
|
|
const planPath = planIndex >= 0 ? process.argv[planIndex + 1] : undefined;
|
|
if (!planPath) {
|
|
console.error("Usage: node --import tsx scripts/ios-release-cut.ts --plan <plan-json-file>");
|
|
process.exit(1);
|
|
}
|
|
|
|
try {
|
|
const plan = JSON.parse(readFileSync(planPath, "utf8")) as IosReleasePlan;
|
|
const changelogPath = path.resolve("apps/ios/CHANGELOG.md");
|
|
const current = readFileSync(changelogPath, "utf8");
|
|
const updated = cutIosReleaseChangelog(current, plan.appStoreVersion);
|
|
if (updated !== current) {
|
|
writeFileSync(changelogPath, updated);
|
|
process.stdout.write(`Cut iOS App Store release notes for ${plan.appStoreVersion}.\n`);
|
|
} else {
|
|
process.stdout.write(
|
|
`iOS App Store release notes for ${plan.appStoreVersion} are already cut.\n`,
|
|
);
|
|
}
|
|
} catch (error) {
|
|
console.error(error instanceof Error ? error.message : String(error));
|
|
process.exit(1);
|
|
}
|