From 78d9c68b223e582a9b7a193624dd4d435a505b4b Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Mon, 3 May 2021 11:11:43 +0200 Subject: [PATCH] Fixed some other minor things --- installer/build.ts | 4 ++-- native/serverconnection/src/audio/AudioLevelMeter.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/build.ts b/installer/build.ts index 05657f2..23491f5 100644 --- a/installer/build.ts +++ b/installer/build.ts @@ -1,5 +1,5 @@ import {Options} from "electron-packager"; -import packager from "electron-packager" +import * as packager from "electron-packager" const pkg = require('../package.json'); if(pkg.name !== "TeaClient") { @@ -344,7 +344,7 @@ async function downloadBundledUiPack(channel: string, targetDirectory: string) { } let path; -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!"); /* We dont have promisify in our build system */ await fs.copy(path_helper.join(options.dir, "github", "ChangeLog.txt"), path_helper.join(app_paths[0], "ChangeLog.txt")); diff --git a/native/serverconnection/src/audio/AudioLevelMeter.cpp b/native/serverconnection/src/audio/AudioLevelMeter.cpp index ade5a72..70b15b7 100644 --- a/native/serverconnection/src/audio/AudioLevelMeter.cpp +++ b/native/serverconnection/src/audio/AudioLevelMeter.cpp @@ -3,6 +3,7 @@ // #include +#include #include "./AudioLevelMeter.h" #include "./processing/AudioVolume.h" #include "../logger.h"