Fixed versions building
This commit is contained in:
parent
301dfd2e7c
commit
26457e40bf
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user