This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const { autoUpdater } = require('electron-updater');
1010let connected = false ;
1111let minimized = false ;
1212let electronWindow ;
13+ let tray ;
1314let location = 'Jezero Crater' ;
1415
1516// App
@@ -51,10 +52,8 @@ function createWindow() {
5152}
5253
5354function createTray ( ) {
54- const iconPath = app . isPackaged
55- ? path . join ( __dirname , '../app.asar/percy.png' )
56- : path . join ( __dirname , 'percy.png' ) ;
57- const appIcon = new Tray ( iconPath ) ;
55+ const icon = path . join ( __dirname , 'percy.png' ) ;
56+ const appIcon = new Tray ( icon ) ;
5857 const contextMenu = Menu . buildFromTemplate ( [
5958 {
6059 label : 'Show' ,
@@ -81,6 +80,7 @@ function createTray() {
8180 } ) ;
8281 appIcon . setToolTip ( 'Perseverance RPC' ) ;
8382 appIcon . setContextMenu ( contextMenu ) ;
83+ tray = appIcon ;
8484}
8585
8686Menu . setApplicationMenu ( Menu . buildFromTemplate ( [
Original file line number Diff line number Diff line change 11{
22 "name" : " perseverancerpc" ,
3- "version" : " 1.1.6 " ,
3+ "version" : " 1.1.7 " ,
44 "description" : " A quick discord RPC application for tracking perseverance landing." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments