fix(desktop): use full Windows installers within the feed limit

This commit is contained in:
Yun Chan 2026-11-20 21:13:37 +09:00
parent 52df7e7e7b
commit df680e4716
17 changed files with 109 additions and 32 deletions

View file

@ -26,6 +26,7 @@ import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { loadSigningKey, publicPemOf } from './lib/update-manifest-signature.mjs'
import { saveReleaseArtifacts, verifyReleaseArtifacts } from './lib/release-artifacts.mjs'
import { supportsWindowsDifferentialDownload } from './lib/desktop-installer-mode.mjs'
const root = join(dirname(fileURLToPath(import.meta.url)), '..', '..')
const args = process.argv.slice(2)
@ -122,7 +123,14 @@ if (resume) {
const tag = `v${version}`
const tagCommit = git(['rev-parse', `${tag}^{commit}`])
const releaseDir = join(root, 'apps', 'desktop', 'release', version)
const artifactIdentity = { version, tagCommit, withRuntime }
const artifactIdentity = {
version,
tagCommit,
withRuntime,
differentialDownload: supportsWindowsDifferentialDownload(
readFileSync(join(root, 'apps', 'desktop', 'electron-builder.yml'), 'utf8'),
),
}
const hasCheckpoint = existsSync(join(releaseDir, 'release-artifacts.json'))
// 태그가 생긴 뒤의 실패는 --resume 으로 이어 간다.