Skip to content

Commit 4f3a29b

Browse files
committed
fix: release gen fail
1 parent afff3ac commit 4f3a29b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src-build/utils.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)