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:
@@ -1,6 +1,5 @@
|
|||||||
appId: com.krunkercivilian.client
|
appId: com.krunkercivilian.client
|
||||||
productName: Krunker Civilian Client
|
productName: Krunker Civilian Client
|
||||||
electronDist: node_modules/electron/dist
|
|
||||||
directories:
|
directories:
|
||||||
output: out
|
output: out
|
||||||
buildResources: build
|
buildResources: build
|
||||||
|
|||||||
@@ -1493,9 +1493,7 @@ ipcRenderer.on('main_did-finish-load', () => {
|
|||||||
}
|
}
|
||||||
// ── In-game Accounts quick-switch button ──
|
// ── In-game Accounts quick-switch button ──
|
||||||
if (isGamePage) {
|
if (isGamePage) {
|
||||||
ipcRenderer.invoke('alt-list').then((accounts: any[]) => {
|
ipcRenderer.invoke('alt-list').then(() => {
|
||||||
if (!accounts || accounts.length === 0) return;
|
|
||||||
|
|
||||||
const altBtn = document.createElement('div');
|
const altBtn = document.createElement('div');
|
||||||
altBtn.id = 'kpcAltBtn';
|
altBtn.id = 'kpcAltBtn';
|
||||||
altBtn.className = 'menuItem';
|
altBtn.className = 'menuItem';
|
||||||
|
|||||||
Reference in New Issue
Block a user