File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ export const BACKGROUND_COLOR = '#fbf9f7'
2626//export const CURRENT_DIR = path.join(__dirname, '..');
2727export const MAIN_FILE = path . join ( __dirname , '../web/index.html' )
2828export const SPLASH_FILE = path . join ( __dirname , '../web/splashscreen.html' )
29- export const LINUX_ICON_FILE = path . join ( __dirname , '../web/logo/logo256.png' )
29+ export const LINUX_ICON_FILE = path . join ( __dirname , '../web/logo/icon512.png' )
30+ export const ICON_FILEPATH = path . join ( __dirname , "/logo/logo256.png" )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import {
3737 LINUX_ICON_FILE ,
3838 SPLASH_FILE ,
3939 MAIN_FILE ,
40- IS_DEBUG , APP_DATA_PATH
40+ IS_DEBUG , APP_DATA_PATH , ICON_FILEPATH
4141} from './constants'
4242
4343import { initApp , addUidToDisk } from "./init" ;
@@ -97,10 +97,7 @@ const createMainWindow = async (appPort: string): Promise<BrowserWindow> => {
9797 webgl : false ,
9898 enableWebSQL : false ,
9999 } ,
100- icon : __dirname + `/logo/logo256.png` ,
101- }
102- if ( process . platform === 'linux' ) {
103- options . icon = LINUX_ICON_FILE
100+ icon : process . platform === 'linux' ? LINUX_ICON_FILE : ICON_FILEPATH ,
104101 }
105102 let mainWindow = new BrowserWindow ( options )
106103
@@ -221,7 +218,7 @@ const createSplashWindow = (): BrowserWindow => {
221218 webgl : false ,
222219 enableWebSQL : false ,
223220 } ,
224- icon : path . join ( __dirname , "/logo/logo256.png" ) ,
221+ icon : process . platform === 'linux' ? LINUX_ICON_FILE : ICON_FILEPATH ,
225222 } )
226223 /** and load it */
227224 if ( app . isPackaged ) {
You can’t perform that action at this time.
0 commit comments