File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @react-native/debugger-shell" ,
3+ "productName" : " React Native DevTools" ,
34 "version" : " 0.82.0-main" ,
45 "description" : " Experimental debugger shell for React Native for use with @react-native/debugger-frontend" ,
56 "keywords" : [
Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ const util = require('util');
1616// $FlowFixMe[unclear-type] We have no Flow types for the Electron API.
1717const { app} = require ( 'electron' ) as any ;
1818
19- // Set the app name and version early - these are used in --version as well as
20- // in the User-Agent string.
21- app . setName ( pkg . name ) ;
19+ // Set the application name and version
20+ app . setName ( pkg . productName ?? pkg . name ) ;
2221app . setVersion ( pkg . version + '-' + buildInfo . revision ) ;
2322
2423// Handle global command line arguments which don't require a window
@@ -31,7 +30,7 @@ const {
3130 strict : false ,
3231} ) ;
3332if ( version ) {
34- console . log ( `${ app . getName ( ) } v${ app . getVersion ( ) } ` ) ;
33+ console . log ( `${ pkg . name } v${ app . getVersion ( ) } ` ) ;
3534 // Not app.quit() - we want to exit immediately without initialising the graphical subsystem.
3635 app . exit ( 0 ) ;
3736}
You can’t perform that action at this time.
0 commit comments