release --resume: a fixed tools/desktop-release.ts may be uncommitted too
This commit is contained in:
parent
02435de966
commit
0ea7292164
1 changed files with 2 additions and 2 deletions
|
|
@ -278,8 +278,8 @@ async function main(): Promise<void> {
|
||||||
const remote = remoteSessionReason(process.env, sh(['launchctl', 'managername'], { allowFail: true }).trim());
|
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 (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, '~')}`);
|
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
|
// --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\/release(-candidate)?\.ts$/.test(l)));
|
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');
|
if (dirty.length) fail('the checkout has uncommitted changes');
|
||||||
sh(['git', 'fetch', '--quiet', 'origin', 'main', '--tags']);
|
sh(['git', 'fetch', '--quiet', 'origin', 'main', '--tags']);
|
||||||
const head = sh(['git', 'rev-parse', 'HEAD']).trim();
|
const head = sh(['git', 'rev-parse', 'HEAD']).trim();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue