From 93775cc36a6fb11e3f6c929eec882bed0a6b243a Mon Sep 17 00:00:00 2001 From: bigjakk Date: Sun, 1 Mar 2026 11:38:51 -0800 Subject: [PATCH] =?UTF-8?q?v0.5.4=20=E2=80=94=20Fix=20taskbar=20pin=20pers?= =?UTF-8?q?istence=20across=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set app.setAppUserModelId() to match electron-builder appId (com.krunkercivilian.client) so Windows associates the running process with the installed shortcut. Add explicit shortcutName to NSIS config for stable shortcut identity across installs. Remove stale uuid entry from electron-builder files list. Co-Authored-By: Claude Opus 4.6 --- electron-builder.yml | 2 +- package.json | 2 +- src/main/index.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 45cd01b..4051a3a 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -25,7 +25,6 @@ files: - node_modules/mimic-fn/**/* - node_modules/semver/**/* - node_modules/onetime/**/* - - node_modules/uuid/**/* - "!node_modules/**/*.ts" - "!node_modules/**/*.map" asar: true @@ -43,6 +42,7 @@ nsis: allowToChangeInstallationDirectory: true createDesktopShortcut: true createStartMenuShortcut: true + shortcutName: Krunker Civilian Client artifactName: "${productName}-${version}-Setup.${ext}" portable: diff --git a/package.json b/package.json index a9a6830..36b111e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "krunker-civilian-client", - "version": "0.5.3", + "version": "0.5.4", "description": "Cross-platform Krunker game client", "main": "dist/main/index.js", "homepage": "https://gitea.crjlab.net/bigjakk/krunker-civilian-client", diff --git a/src/main/index.ts b/src/main/index.ts index a089e0a..fe117c3 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -54,6 +54,9 @@ const advancedConfig = { ...advancedDefaults, ...config.get('advanced') }; const perfConfig = { fpsUnlocked: true, ...config.get('performance') }; applyPlatformFlags(platformInfo, advancedConfig, perfConfig); +// ── App identity (must match electron-builder appId for taskbar pin persistence) ── +app.setAppUserModelId('com.krunkercivilian.client'); + // ── Resource swapper protocol (must register before app.ready) ── initSwapperProtocol();