fix(release): keep the updater configuration in the installer
Some checks failed
deploy-site / deploy (push) Failing after 1m6s
Some checks failed
deploy-site / deploy (push) Failing after 1m6s
Installing the previous build left an app that could not update itself: the packaging path used to guarantee the native module build does not create the updater configuration file, so the update client had nothing to read. That file is now written from the single feed source and its presence in the packaged app is checked before anything is published, so an installer that cannot update can no longer be released.
This commit is contained in:
parent
1af3cf75c7
commit
f14341ace4
28 changed files with 141 additions and 47 deletions
|
|
@ -146,6 +146,9 @@ if (!existsSync(appDir)) {
|
|||
// (실측 사고: better_sqlite3.node가 NODE_MODULE_VERSION 131 → Electron 130 요구)
|
||||
runNodeScript('scripts/ci/fix-native-abi.mjs', ['--dir', appDir])
|
||||
runNodeScript('scripts/ci/verify-native-abi.mjs', ['--dir', appDir])
|
||||
// electron-builder의 --dir/--prepackaged 경로는 app-update.yml을 만들지 않는다.
|
||||
// 이 파일이 없으면 electron-updater가 설정을 읽지 못해 자동 업데이트가 죽는다(실측).
|
||||
runNodeScript('scripts/ci/write-app-update-yml.mjs', ['--dir', appDir])
|
||||
|
||||
// 이전 볼륨 정리 (같은 버전 재드 시 잔여 볼륨이 섞이지 않도록)
|
||||
for (const name of readdirSync(releaseDir)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue