fix(desktop): use full Windows installers within the feed limit
This commit is contained in:
parent
52df7e7e7b
commit
df680e4716
17 changed files with 109 additions and 32 deletions
|
|
@ -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 으로 이어 간다.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue