Skip to content

Commit b2fc3d2

Browse files
author
=
committed
switch to nativeimage
to fix mac icon issue fix path require
1 parent 8fca640 commit b2fc3d2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/window.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
2-
const join = require('path').join
2+
const path = require('path')
3+
const nativeImage = require('electron').nativeImage
34
const BrowserWindow = require('electron').BrowserWindow
45
const config = require('./config')
56

@@ -12,7 +13,7 @@ module.exports = function createMainWindow (handleResize, handleClosed) {
1213
y: lastWindowState.y,
1314
width: lastWindowState.width,
1415
height: lastWindowState.height,
15-
icon: path.join(__static, "icon.png"),
16+
icon: nativeImage.createFromPath(path.join(__dirname, '../build/icon.png')),
1617
title: 'Keep',
1718
titleBarStyle: 'hiddenInset',
1819
webPreferences: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "keep",
33
"productName": "Keep",
4-
"version": "0.2.1",
4+
"version": "0.2.2",
55
"description": "Desktop app for Google Keep packaged with Electron",
66
"main": "app/index.js",
77
"files": [

0 commit comments

Comments
 (0)