Some cleanup and a fix

This commit is contained in:
WolverinDEV 2021-03-22 19:39:41 +01:00
parent 750dbf5d66
commit 41ff890d81
3 changed files with 3 additions and 5 deletions

View File

@ -126,8 +126,9 @@ packager.pack_info(package_path).then(async info => {
} }
await deployer.deploy_win_dbg_files(files, version); await deployer.deploy_win_dbg_files(files, version);
console.log("PDB files deployed"); console.log("PDB files deployed");
}) }).then(async () => {
.then(async () => { await sign_file(dest_path + filename_installer, "TeaSpeak client installer");
}).then(async () => {
console.log("Deploying build"); console.log("Deploying build");
await packager.deploy("win32", "x64", process.argv[2], version, dest_path + filename_update, dest_path + filename_installer, "exe"); await packager.deploy("win32", "x64", process.argv[2], version, dest_path + filename_update, dest_path + filename_installer, "exe");
}).then(() => { }).then(() => {

View File

@ -14,7 +14,6 @@ import {CachedUIPack, UIPackInfo} from "./CacheFile";
import {localUiCache, saveLocalUiCache} from "./Cache"; import {localUiCache, saveLocalUiCache} from "./Cache";
import {shippedClientUi} from "./Shipped"; import {shippedClientUi} from "./Shipped";
import {downloadUiPack, queryRemoteUiPacks} from "./Remote"; import {downloadUiPack, queryRemoteUiPacks} from "./Remote";
import * as url from "url";
import {protocol} from "electron"; import {protocol} from "electron";
const kUiPackProtocol = "shared-ui"; const kUiPackProtocol = "shared-ui";

View File

@ -8,7 +8,6 @@ import * as path from "path";
let windowInstance: BrowserWindow; let windowInstance: BrowserWindow;
export const kWindowPartitionMainApp = "persist:main-app";
export async function showMainWindow(entryPointUrl: string) { export async function showMainWindow(entryPointUrl: string) {
if(windowInstance) { if(windowInstance) {
throw "main window already initialized"; throw "main window already initialized";
@ -31,7 +30,6 @@ export async function showMainWindow(entryPointUrl: string) {
nodeIntegrationInWorker: true, nodeIntegrationInWorker: true,
nodeIntegration: true, nodeIntegration: true,
preload: path.join(__dirname, "..", "renderer", "PreloadScript.js"), preload: path.join(__dirname, "..", "renderer", "PreloadScript.js"),
partition: kWindowPartitionMainApp
}, },
icon: path.join(__dirname, "..", "..", "..", "..", "resources", "logo.ico"), icon: path.join(__dirname, "..", "..", "..", "..", "resources", "logo.ico"),
}); });