Merge branch 'master' of https://git.did.science/WolverinDEV/TeaSpeak-Client into HEAD
This commit is contained in:
commit
a75dac6283
@ -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