fix(main): W1 四项修复
- updater: applyUpdateSchedule 记忆 interval,未变化不重建定时器 - updater: startupArmed 进程首次调用即消费,中途拨开只影响周期定时器 - settingsStore: LEGACY_BUILTIN_PATTERNS 补 url 预设(唯一漏登记项) - release.cjs: --channel-only 与 --skip-gitea 组合 fail-fast exit 1
This commit is contained in:
1 parent
9036bea6f3
commit
69d24fbed6
5 files changed
+147
-23
No files matched your search
@@ -33,6 +33,18 @@ const SKIP_GH = process.argv.includes('--skip-github')
|
||||
const SKIP_GITEA = process.argv.includes('--skip-gitea')
|
||||
const SKIP_GITEA_RELEASE = process.argv.includes('--skip-gitea-release')
|
||||
const CHANNEL_ONLY = process.argv.includes('--channel-only')
|
||||
// Rejected before anything runs (no network, no uploads): --channel-only exists
|
||||
// to republish the Gitea update channel, so pairing it with --skip-gitea asks
|
||||
// for two opposite things. Without this check the CHANNEL_ONLY branch returns
|
||||
// before the SKIP_GITEA warning is ever printed and the channel silently
|
||||
// uploads anyway. (--skip-gitea-release is fine: channel-only never creates a
|
||||
// release object.)
|
||||
if (CHANNEL_ONLY && SKIP_GITEA) {
|
||||
console.error('*** --channel-only and --skip-gitea are contradictory: --channel-only exists to ***')
|
||||
console.error('*** publish the Gitea update channel. To republish just the channel, use ***')
|
||||
console.error('*** --channel-only alone; to skip Gitea entirely, drop --channel-only. ***')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
/** Strip one pair of matching quotes. A .env quotes its values for the shell
|
||||
that would source it, so the quotes are syntax, not part of the token. */
|
||||
|
||||
Reference in new issue
Block a user