앱 업데이트 실패 문제
This commit is contained in:
@@ -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)');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user