File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ const { registerCredIpcHandlers } = require('./main-cred-ipc');
88const { registerWindowIpcHandlers, registerWindow, setOnAllWindowsClosed } = require ( './main-window-ipc' ) ;
99const { assertTrusted } = require ( './ipc-security' ) ;
1010const { getWindowOptions, trackWindowState, DEFAULTS } = require ( './window-state' ) ;
11- const { phoenixLoadURL, gaMetricsURL } = require ( './config' ) ;
11+ const { phoenixLoadURL, gaMetricsURL, version, productName } = require ( './config' ) ;
12+
13+ // Handle --version / -v flag before any Electron initialization
14+ if ( process . argv . includes ( '-v' ) || process . argv . includes ( '--version' ) ) {
15+ console . log ( `${ version } ` ) ;
16+ process . exit ( 0 ) ;
17+ }
1218
1319// Register phtauri:// as a privileged scheme (must be done before app ready)
1420// This enables standard web features: fetch, localStorage, cookies, etc.
You can’t perform that action at this time.
0 commit comments