앱 실시간 갱신 수정

This commit is contained in:
Macbook
2026-06-14 19:41:49 +09:00
parent c105ae209b
commit ad6347f2a2
9 changed files with 71 additions and 39 deletions
@@ -59,5 +59,11 @@ parts[2] += 1;
const nv = parts.join('.');
conf.version = nv;
fs.writeFileSync(confPath, JSON.stringify(conf, null, 2) + '\n');
const pkgPath = path.join(path.dirname(confPath), '..', 'package.json');
try {
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
pkg.version = nv;
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
} catch { /* ignore */ }
console.log(nv);
" "$CONF" "$LATEST" "$UPDATES_DIR" "$BUILD_INFO"