diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 5c0b99f..ca592ca 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -19,7 +19,9 @@ "license": "MIT", "config": { "forge": { - "packagerConfig": {}, + "packagerConfig": { + "icon": "./src/assets/1024x1024" + }, "makers": [ { "name": "@electron-forge/maker-squirrel", diff --git a/packages/desktop/src/assets/1024x1024.icns b/packages/desktop/src/assets/1024x1024.icns new file mode 100644 index 0000000..fee08f7 Binary files /dev/null and b/packages/desktop/src/assets/1024x1024.icns differ diff --git a/packages/desktop/src/index.ts b/packages/desktop/src/index.ts index e82e4a5..44a70e7 100644 --- a/packages/desktop/src/index.ts +++ b/packages/desktop/src/index.ts @@ -2,6 +2,7 @@ import { BrowserWindow, app, ipcMain } from "electron"; import Channels, { Dimensions } from "./electron/constants"; import { handleLogin } from "./electron/handleLogin"; +import path from "path"; import store from "./electron/store"; // This allows TypeScript to pick up the magic constant that's auto-generated by Forge's Webpack @@ -28,6 +29,7 @@ const createWindow = (): void => { preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY, sandbox: true, }, + icon: "./src/assets/1024x1024", }); // and load the index.html of the app.