Skip to content

Commit 2b2daa9

Browse files
committed
fix: desktop build error
1 parent f0d3b75 commit 2b2daa9

File tree

3 files changed

+26
-47
lines changed

3 files changed

+26
-47
lines changed

console/atest-desktop/forge.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ module.exports = {
5353
"chooseDirectory": true
5454
},
5555
beforeCreate: (msiCreator) => {
56+
// Ensure INSTALLDIR is properly defined in the existing ProgramFilesFolder
57+
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
58+
'<Directory Id="ProgramFilesFolder">',
59+
`<Directory Id="ProgramFilesFolder">
60+
<Directory Id="INSTALLDIR" Name="API Testing" />`
61+
);
62+
5663
// Add installation directory to system PATH
5764
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
5865
'</Product>',
@@ -71,13 +78,6 @@ module.exports = {
7178
7279
</Product>`
7380
);
74-
75-
// Ensure INSTALLDIR is properly defined in the existing ProgramFilesFolder
76-
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
77-
'<Directory Id="ProgramFilesFolder">',
78-
`<Directory Id="ProgramFilesFolder">
79-
<Directory Id="INSTALLDIR" Name="API Testing" />`
80-
);
8181
}
8282
}
8383
}

console/atest-desktop/package-lock.json

Lines changed: 18 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

console/atest-desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"publish": "electron-forge publish"
1212
},
1313
"engines": {
14-
"node": "22.12.0"
14+
"node": ">=22.12.0"
1515
},
1616
"author": "linuxsuren",
1717
"license": "ISC",

0 commit comments

Comments
 (0)