chore: try to get everything building

This commit is contained in:
izzy
2025-10-08 17:28:30 +01:00
parent 9f705147b6
commit 2cc6ac4667
8 changed files with 71 additions and 32 deletions
+4 -3
View File
@@ -1,5 +1,4 @@
import dbus from "@homebridge/dbus-native";
import { resolve } from "node:path";
import { NativeImage, app, nativeImage } from "electron";
@@ -19,8 +18,10 @@ export async function setBadgeCount(count: number) {
}
if (!nativeIcons[count])
nativeIcons[count] = nativeImage.createFromPath(
resolve(process.resourcesPath, `${Math.min(count, 10)}.ico`),
nativeIcons[count] = nativeImage.createFromDataURL(
await import(
`../../assets/desktop/badges/${Math.min(count, 10)}.ico?asset`
),
);
mainWindow.setOverlayIcon(