diff --git a/github b/github index 2dd1f60..06391c6 160000 --- a/github +++ b/github @@ -1 +1 @@ -Subproject commit 2dd1f60e8d034a68bbca9afe294070c8a83caa9e +Subproject commit 06391c6cdd772c2f83c1387960f7224f7cd9f514 diff --git a/installer/build.ts b/installer/build.ts index 8f17237..c247386 100644 --- a/installer/build.ts +++ b/installer/build.ts @@ -28,6 +28,16 @@ if(!pkg.dependencies['electron']) { process.exit(1); } +options["version-string"] = { + 'CompanyName': 'TeaSpeak', + 'LegalCopyright': '© 2018-2019 Markus Hadenfeldt All Rights Reserved', + 'FileDescription' : 'The TeaSpeak-Client Application', + 'OriginalFilename' : 'TeaClient.exe', + 'FileVersion' : pkg.version, + 'ProductVersion' : pkg.version, + 'ProductName' : 'TeaSpeak-Client', + 'InternalName' : 'TeaClient.exe' +} options.electronVersion = pkg.dependencies['electron']; options.protocols = [{name: "TeaSpeak - Connect", schemes: ["teaserver"]}]; options.overwrite = true; diff --git a/modules/core/ui-loader/loader.ts b/modules/core/ui-loader/loader.ts index 1af9768..d49841a 100644 --- a/modules/core/ui-loader/loader.ts +++ b/modules/core/ui-loader/loader.ts @@ -106,7 +106,9 @@ function get_raw_app_files() : Promise { function download_raw_app_files() : Promise { return get_raw_app_files().then(response => { for(let file of response) { - file.local_url = () => fs.mkdirs(local_path + file.path + "/").then(() => new Promise((resolve, reject) => { + const full_path = path.join(local_path, file.path, file.name); + file.local_url = () => fs.mkdirs(path.dirname(full_path)).then(() => new Promise((resolve, reject) => { + const write_stream = fs.createWriteStream(full_path); request.get(remote_url() + "api.php?" + querystring.stringify({ type: "file", path: file.path, @@ -121,7 +123,7 @@ function download_raw_app_files() : Promise { }).on('complete', event => { }).on('error', error => { setImmediate(reject, error); - }).pipe(fs.createWriteStream(local_path + file.path + "/" + file.name)) + }).pipe(write_stream) .on('finish', event => { setImmediate(resolve, file.path + "/" + file.name); }); diff --git a/package.json b/package.json index d6e6bbc..34c91e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "TeaClient", - "version": "1.3.6", + "version": "1.3.6-2", "description": "", "main": "main.js", "scripts": { @@ -8,6 +8,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "start": "electron --js-flags='--expose-gc' --debug --dev-tools --disable-hardware-acceleration .", "start-d": "electron . --disable-hardware-acceleration --debug -t -su http://dev.clientapi.teaspeak.de/", + "start-wd": "electron . --disable-hardware-acceleration --debug -t -su http://localhost/TeaWeb/client-api/environment/", "start-d1": "electron . --disable-hardware-acceleration --debug -t --gdb -su http://clientapi.teaspeak.de/ --updater-ui-loader_type=0", "start-n": "electron . -t --disable-hardware-acceleration --no-single-instance -u=https://clientapi.teaspeak.de/ -d --updater-ui-loader_type=0", "start-01": "electron . --updater-channel=test -u=http://dev.clientapi.teaspeak.de/ -d --updater-ui-loader_type=0 --updater-local-version=1.0.1", @@ -26,7 +27,7 @@ "@types/electron-packager": "8.7.2", "@types/fs-extra": "^8.0.0", "@types/jquery": "^3.3.30", - "@types/request": "^2.48.1", + "@types/request": "^2.48.2", "@types/request-promise": "^4.1.44", "@types/tar-stream": "^1.6.1", "asar": "^2.0.1", @@ -35,8 +36,8 @@ "electron-packager": "8.7.2", "nodemon": "^1.19.1", "platform-dependent-modules": "0.0.14", - "sass": "^1.22.3", - "typescript": "^3.5.2" + "sass": "^1.22.7", + "typescript": "^3.5.3" }, "dependencies": { "@types/minimist": "^1.2.0",