Always show Accounts button, fix Linux CI electronDist

Show Accounts menu button even with no saved accounts so users can
add accounts from the in-game menu. Remove hardcoded electronDist
from electron-builder.yml — let electron-builder auto-detect on
Linux CI, Windows CI overrides via -c.electronDist flag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 07:46:07 -08:00
parent ceb8f73a2a
commit 96e0cbfc07
2 changed files with 1 additions and 4 deletions
-1
View File
@@ -1,6 +1,5 @@
appId: com.krunkercivilian.client
productName: Krunker Civilian Client
electronDist: node_modules/electron/dist
directories:
output: out
buildResources: build
+1 -3
View File
@@ -1493,9 +1493,7 @@ ipcRenderer.on('main_did-finish-load', () => {
}
// ── In-game Accounts quick-switch button ──
if (isGamePage) {
ipcRenderer.invoke('alt-list').then((accounts: any[]) => {
if (!accounts || accounts.length === 0) return;
ipcRenderer.invoke('alt-list').then(() => {
const altBtn = document.createElement('div');
altBtn.id = 'kpcAltBtn';
altBtn.className = 'menuItem';