앱 업데이트 실패 문제

This commit is contained in:
Macbook
2026-06-16 23:02:49 +09:00
parent 074b4fd03a
commit 092d181d0f
8 changed files with 173 additions and 7 deletions
+8 -1
View File
@@ -129,7 +129,14 @@ const manifest = {
};
const outPath = path.join(dir, 'latest.json');
fs.writeFileSync(outPath, `${JSON.stringify(manifest, null, 2)}\n`);
const body = `${JSON.stringify(manifest, null, 2)}\n`;
if (body.length < 8) {
console.error('[error] refusing to write empty latest.json');
process.exit(3);
}
const tmpPath = `${outPath}.tmp`;
fs.writeFileSync(tmpPath, body, 'utf8');
fs.renameSync(tmpPath, outPath);
console.log('Wrote', outPath);
console.log('Platforms:', Object.keys(platforms).join(', ') || '(none — sign updater bundles first)');