Skip to content

Commit

Permalink
chore: Update electron icons.js and electron main.js to use new dock …
Browse files Browse the repository at this point in the history
…icon for macOS
  • Loading branch information
mohandast52 committed May 14, 2024
1 parent a43a5af commit 30d2284
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const main = async () => {
token: process.env.GH_TOKEN,
},
category: 'public.app-category.utilities',
icon: 'electron/assets/icons/splash-robot-head.png',
icon: 'electron/assets/icons/splash-robot-head-dock.png',
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: 'electron/entitlements.mac.plist',
Expand Down
Binary file added electron/assets/icons/splash-robot-head-dock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron/assets/icons/splash-robot-head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ const createMainWindow = () => {
draggable: true,
// frame: false,
// transparent: true,
// titleBarStyle: 'hidden',
resizable: false,
fullscreenable: false,
maximizable: false,
// width: 420,
width: isDev ? 800 : 420,
height: 735,
webPreferences: {
Expand Down Expand Up @@ -407,7 +409,7 @@ ipcMain.on('check', async function (event) {
app.on('ready', async () => {
if (platform === 'darwin') {
app.dock?.setIcon(
path.join(__dirname, 'assets/icons/splash-robot-head.png'),
path.join(__dirname, 'assets/icons/splash-robot-head-dock.png'),
);
}
createSplashWindow();
Expand Down

0 comments on commit 30d2284

Please sign in to comment.