diff --git a/package.json b/package.json index 8b5982d..7929588 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vencorddesktop", + "name": "VencordDesktop", "private": true, "version": "0.1.0", "description": "", diff --git a/src/main/index.ts b/src/main/index.ts index 6fdc989..342cd70 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -9,6 +9,7 @@ import { DATA_DIR, VENCORD_FILES_DIR } from "./constants"; import { once } from "../shared/utils/once"; import { ensureVencordFiles } from "./utils/vencordLoader"; +import { ICON_PATH } from "../shared/paths"; import "./ipc"; // Make the Vencord files use our DATA_DIR @@ -30,6 +31,9 @@ if (!app.requestSingleInstanceLock()) { }); app.whenReady().then(async () => { + if (process.platform === "darwin") + app.dock.setIcon(ICON_PATH); + createWindows(); app.on('activate', () => { diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 79fc714..f540fac 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -81,10 +81,6 @@ export function createMainWindow() { icon: ICON_PATH }); - // le epic crapple moment - if (process.platform === "darwin") - app.dock.setIcon(ICON_PATH); - win.on("close", e => { if (isQuitting) return;