From e1be3bbfb7b064688b7ba292f25666d2c0f666be Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sun, 5 May 2024 18:23:16 +0800 Subject: [PATCH] fix: recover icon read --- src/main/platforms/macos.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/platforms/macos.ts b/src/main/platforms/macos.ts index db770ad..6f8aa37 100644 --- a/src/main/platforms/macos.ts +++ b/src/main/platforms/macos.ts @@ -72,10 +72,9 @@ export const adapter: AppReader = { if (!isElectronBased) throw new Error("Not an electron app"); const info = await readPlistFile(path.join(p, "Contents/Info.plist")); - // const icon = await readIcnsAsImageUri( - // path.join(p, "Contents/Resources", info.CFBundleIconFile), - // ); - const icon = ""; + const icon = await readIcnsAsImageUri( + path.join(p, "Contents/Resources", info.CFBundleIconFile), + ); return { id: info.CFBundleIdentifier,