Fixed some other minor things

This commit is contained in:
WolverinDEV 2021-05-03 11:11:43 +02:00
parent 58077b7d28
commit 78d9c68b22
2 changed files with 3 additions and 2 deletions

View File

@ -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<string[]>((resolve, reject) => packager(options, (err, appPaths) => err ? reject(err) : resolve(appPaths))).then(async app_paths => {
new Promise<string[] | string>((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"));

View File

@ -3,6 +3,7 @@
//
#include <cassert>
#include <thread>
#include "./AudioLevelMeter.h"
#include "./processing/AudioVolume.h"
#include "../logger.h"