ifxed packager promise

This commit is contained in:
WolverinDEV 2019-07-05 22:49:54 +02:00
parent 5cd6a9fa07
commit 3925e5bfdc
1 changed files with 1 additions and 3 deletions

View File

@ -314,9 +314,7 @@ async function create_default_ui_pack(target_directory: string) {
}
let path;
(async () => {
await new Promise((resolve, reject) => packager(options, (err, appPaths) => err ? reject(err) : resolve(appPaths)))
})().then(async app_paths => {
new Promise((resolve, reject) => packager(options, (err, appPaths) => err ? reject(err) : resolve(appPaths))).then(async app_paths => {
console.log("Copying changelog file!");
await util.promisify(fs.copyFile)(path_helper.join(options.dir, "github", "ChangeLog.txt"), path_helper.join(app_paths[0], "ChangeLog.txt"));
return app_paths;