앱 실시간 갱신 수정
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user