This commit is contained in:
WolverinDEV 2019-07-06 20:49:48 +02:00
commit a75dac6283

View File

@ -332,10 +332,18 @@ new Promise((resolve, reject) => packager(options, (err, appPaths) => err ? reje
} else if (process.argv[2] == "win32") {
await copy_striped(options.dir + "/native/build/exe/update-installer.exe", path + "/update-installer.exe", "build/symbols");
}
return fs.writeJson(path + "/app_version.json", {
await fs.writeJson(path + "/app_version.json", {
version: version.toString(true),
timestamp: version.timestamp
});
return appPaths;
}).then(async app_path => {
console.log("Fixing versions file");
let version = await fs.readFile(path_helper.join(app_path[0], "version"), 'UTF-8');
if(!version.startsWith("v"))
version = "v" + version;
await fs.writeFile(path_helper.join(app_path[0], "version"), version);
return app_path;
}).then(() => {
console.log("Package created");
}).catch(error => {