From 2a44741d011ba90aa38a8be099a8989ec0213e30 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 5 Jul 2019 22:54:18 +0200 Subject: [PATCH] Removed build server breaking statement --- installer/build.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/installer/build.ts b/installer/build.ts index a35daaf..350eb9a 100644 --- a/installer/build.ts +++ b/installer/build.ts @@ -316,7 +316,8 @@ async function create_default_ui_pack(target_directory: string) { let path; 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")); + /* We dont have promisify in our build system */ + fs.copyFileSync(path_helper.join(options.dir, "github", "ChangeLog.txt"), path_helper.join(app_paths[0], "ChangeLog.txt")); return app_paths; }).then(async app_paths => { await create_native_addons(path_helper.join(app_paths[0], "resources", "natives"), "build/symbols"); @@ -338,6 +339,9 @@ new Promise((resolve, reject) => packager(options, (err, appPaths) => err ? reje }); }).then(() => { console.log("Package created"); +}).catch(error => { + console.error("Failed to create package!"); + process.exit(1); }); export {} \ No newline at end of file