File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,7 @@ const init = async () => {
4444
4545 app . setName ( config . name )
4646 app . setAppUserModelId ( config . name )
47- if ( process . platform !== 'darwin' ) {
48- app . setAboutPanelOptions ( AboutPanelOptions )
49- }
47+ app . setAboutPanelOptions ( AboutPanelOptions )
5048
5149 await installExtensions ( )
5250
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ config.author = pkg.author
1616config . isDevelopment = process . env . NODE_ENV === 'development'
1717config . isProduction = process . env . NODE_ENV === 'production'
1818config . appPort = process . env . RI_APP_PORT || configInit . defaultPort
19+ config . appType = process . env . RI_APP_TYPE || 'ELECTRON'
20+ config . isEnterprise = config . appType === 'ELECTRON_ENTERPRISE'
1921config . getApiPort = ( ) => process . env . RI_APP_PORT || configInit . defaultPort
2022config . tcpLocalAuthPort = process . env . TCP_LOCAL_AUTH_PORT
2123 ? parseInt ( process . env . TCP_LOCAL_AUTH_PORT , 10 )
Original file line number Diff line number Diff line change @@ -6,11 +6,15 @@ const ICON_PATH = app.isPackaged
66 ? path . join ( process . resourcesPath , 'resources' , 'icon.png' )
77 : path . join ( __dirname , '../resources' , 'icon.png' )
88
9+ const appVersionPrefix = config . isEnterprise ? 'Enterprise - ' : ''
10+ const appVersion = app . getVersion ( ) || '2.68.0'
11+ const appVersionSuffix = ! config . isProduction
12+ ? `-dev-${ process . getCreationTime ( ) } `
13+ : ''
14+
915export const AboutPanelOptions = {
1016 applicationName : 'Redis Insight' ,
11- applicationVersion : `${ app . getVersion ( ) || '2.68.0' } ${
12- ! config . isProduction ? `-dev-${ process . getCreationTime ( ) } ` : ''
13- } `,
17+ applicationVersion : `${ appVersionPrefix } ${ appVersion } ${ appVersionSuffix } ` ,
1418 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Redis Ltd.` ,
1519 iconPath : ICON_PATH ,
1620}
You can’t perform that action at this time.
0 commit comments