From 41ff890d81d975ccc14fde31938c23d564724397 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Mon, 22 Mar 2021 19:39:41 +0100 Subject: [PATCH] Some cleanup and a fix --- installer/package_windows.ts | 5 +++-- modules/core/ui-loader/Loader.ts | 1 - modules/core/windows/main-window/controller/MainWindow.ts | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/installer/package_windows.ts b/installer/package_windows.ts index fdec6ec..be2bdb5 100644 --- a/installer/package_windows.ts +++ b/installer/package_windows.ts @@ -126,8 +126,9 @@ packager.pack_info(package_path).then(async info => { } await deployer.deploy_win_dbg_files(files, version); 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"); await packager.deploy("win32", "x64", process.argv[2], version, dest_path + filename_update, dest_path + filename_installer, "exe"); }).then(() => { diff --git a/modules/core/ui-loader/Loader.ts b/modules/core/ui-loader/Loader.ts index 958b4df..554bdfd 100644 --- a/modules/core/ui-loader/Loader.ts +++ b/modules/core/ui-loader/Loader.ts @@ -14,7 +14,6 @@ import {CachedUIPack, UIPackInfo} from "./CacheFile"; import {localUiCache, saveLocalUiCache} from "./Cache"; import {shippedClientUi} from "./Shipped"; import {downloadUiPack, queryRemoteUiPacks} from "./Remote"; -import * as url from "url"; import {protocol} from "electron"; const kUiPackProtocol = "shared-ui"; diff --git a/modules/core/windows/main-window/controller/MainWindow.ts b/modules/core/windows/main-window/controller/MainWindow.ts index 8f71d84..ccc657a 100644 --- a/modules/core/windows/main-window/controller/MainWindow.ts +++ b/modules/core/windows/main-window/controller/MainWindow.ts @@ -8,7 +8,6 @@ import * as path from "path"; let windowInstance: BrowserWindow; -export const kWindowPartitionMainApp = "persist:main-app"; export async function showMainWindow(entryPointUrl: string) { if(windowInstance) { throw "main window already initialized"; @@ -31,7 +30,6 @@ export async function showMainWindow(entryPointUrl: string) { nodeIntegrationInWorker: true, nodeIntegration: true, preload: path.join(__dirname, "..", "renderer", "PreloadScript.js"), - partition: kWindowPartitionMainApp }, icon: path.join(__dirname, "..", "..", "..", "..", "resources", "logo.ico"), });