From 0ea7292164b74861b810c88349516a8a7c82569a Mon Sep 17 00:00:00 2001 From: CRT Date: Thu, 29 Oct 2026 19:41:40 +0700 Subject: [PATCH] release --resume: a fixed tools/desktop-release.ts may be uncommitted too --- tools/release.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/release.ts b/tools/release.ts index 3caac77..016d91f 100644 --- a/tools/release.ts +++ b/tools/release.ts @@ -278,8 +278,8 @@ async function main(): Promise { const remote = remoteSessionReason(process.env, sh(['launchctl', 'managername'], { allowFail: true }).trim()); if (remote) fail(`${remote}: signing and notarization need the owner's logged-in macOS session`); if (!existsSync(join(KEYS, 'updater.key'))) fail(`no updater key in ${KEYS.replace(HOME, '~')}`); - // --resume may run with a fixed release tool (tools/release*.ts), which is not part of what ships - const dirty = sh(['git', 'status', '--porcelain']).split('\n').filter(l => l.trim() && !(resume && /^ M tools\/release(-candidate)?\.ts$/.test(l))); + // --resume may run with a fixed release tool (tools/release*.ts, tools/desktop-release.ts), which is not part of what ships + const dirty = sh(['git', 'status', '--porcelain']).split('\n').filter(l => l.trim() && !(resume && /^ M tools\/(desktop-)?release(-candidate)?\.ts$/.test(l))); if (dirty.length) fail('the checkout has uncommitted changes'); sh(['git', 'fetch', '--quiet', 'origin', 'main', '--tags']); const head = sh(['git', 'rev-parse', 'HEAD']).trim();