feat: use standardized icon for macOS

This commit is contained in:
Ryan Cao 2023-07-08 14:47:48 +08:00
parent b4da701080
commit 802dafcdb5
No known key found for this signature in database
4 changed files with 1 additions and 2 deletions

BIN
build/icon.icns Normal file

Binary file not shown.

View file

@ -9,7 +9,6 @@ import "./ipc";
import { app, BrowserWindow } from "electron";
import { checkUpdates } from "updater/main";
import { ICON_PATH } from "../shared/paths";
import { DATA_DIR } from "./constants";
import { createFirstLaunchTour } from "./firstLaunch";
import { createWindows, mainWin } from "./mainWindow";
@ -48,7 +47,6 @@ function init() {
app.whenReady().then(async () => {
checkUpdates();
if (process.platform === "win32") app.setAppUserModelId("dev.vencord.desktop");
else if (process.platform === "darwin") app.dock.setIcon(ICON_PATH);
registerScreenShareHandler();
bootstrap();

View file

@ -10,3 +10,4 @@ export const STATIC_DIR = /* @__PURE__ */ join(__dirname, "..", "..", "static");
export const VIEW_DIR = /* @__PURE__ */ join(STATIC_DIR, "views");
export const BADGE_DIR = /* @__PURE__ */ join(STATIC_DIR, "badges");
export const ICON_PATH = /* @__PURE__ */ join(STATIC_DIR, "icon.png");
export const MACOS_ICON_PATH = /* @__PURE__ */ join(STATIC_DIR, "icon.icns");

BIN
static/icon.icns Normal file

Binary file not shown.