File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,14 @@ const METRIC_URL_FOR_STAGE = {
103103 "production" : "https://phcode.dev/desktop-metrics.html"
104104} ;
105105
106- export function patchTauriConfigWithMetricsHTML ( tauriConf ) {
106+ export function patchTauriConfigWithMetricsHTML ( tauriConf , useClonedPhoenix ) {
107107 const platform = getPlatformDetails ( ) . platform ;
108- const phoenixConfigPath = ( platform === "win" ) ? `${ __dirname } \\. ..\\..\\phoenix\\dist\\config.json`
108+ let phoenixConfigPath = ( platform === "win" ) ? `${ __dirname } \\..\\..\\phoenix\\dist\\config.json`
109109 : `${ __dirname } /../../phoenix/dist/config.json` ;
110+ if ( useClonedPhoenix ) {
111+ phoenixConfigPath = ( platform === "win" ) ? `${ __dirname } \\..\\phoenix\\dist\\config.json`
112+ : `${ __dirname } /../phoenix/dist/config.json` ;
113+ }
110114 console . log ( "Reading Phoenix config file: " , phoenixConfigPath ) ;
111115 let phoenixConfigJson = JSON . parse ( fs . readFileSync ( phoenixConfigPath ) ) ;
112116 const phoenixStageInDist = phoenixConfigJson . config . environment ;
You can’t perform that action at this time.
0 commit comments