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 () => {
44
44
45
45
app . setName ( config . name )
46
46
app . setAppUserModelId ( config . name )
47
- if ( process . platform !== 'darwin' ) {
48
- app . setAboutPanelOptions ( AboutPanelOptions )
49
- }
47
+ app . setAboutPanelOptions ( AboutPanelOptions )
50
48
51
49
await installExtensions ( )
52
50
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ config.author = pkg.author
16
16
config . isDevelopment = process . env . NODE_ENV === 'development'
17
17
config . isProduction = process . env . NODE_ENV === 'production'
18
18
config . appPort = process . env . RI_APP_PORT || configInit . defaultPort
19
+ config . appType = process . env . RI_APP_TYPE || 'ELECTRON'
20
+ config . isEnterprise = config . appType === 'ELECTRON_ENTERPRISE'
19
21
config . getApiPort = ( ) => process . env . RI_APP_PORT || configInit . defaultPort
20
22
config . tcpLocalAuthPort = process . env . TCP_LOCAL_AUTH_PORT
21
23
? 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
6
6
? path . join ( process . resourcesPath , 'resources' , 'icon.png' )
7
7
: path . join ( __dirname , '../resources' , 'icon.png' )
8
8
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
+
9
15
export const AboutPanelOptions = {
10
16
applicationName : 'Redis Insight' ,
11
- applicationVersion : `${ app . getVersion ( ) || '2.68.0' } ${
12
- ! config . isProduction ? `-dev-${ process . getCreationTime ( ) } ` : ''
13
- } `,
17
+ applicationVersion : `${ appVersionPrefix } ${ appVersion } ${ appVersionSuffix } ` ,
14
18
copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Redis Ltd.` ,
15
19
iconPath : ICON_PATH ,
16
20
}
You can’t perform that action at this time.
0 commit comments