Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions console/atest-desktop/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,6 @@ module.exports = {
"enabled": true,
"chooseDirectory": true
},
beforeCreate: (msiCreator) => {
// Add installation directory to system PATH
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
'</Product>',
` <Property Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
<CustomAction Id="AddToPath" Property="PATH" Value="[INSTALLDIR]" Execute="immediate" />
<CustomAction Id="RemoveFromPath" Property="PATH" Value="[INSTALLDIR]" Execute="immediate" />

<InstallExecuteSequence>
<Custom Action="AddToPath" After="InstallFiles">NOT Installed</Custom>
<Custom Action="RemoveFromPath" Before="RemoveFiles">REMOVE="ALL"</Custom>
</InstallExecuteSequence>

<Component Id="PathComponent" Guid="*" Directory="INSTALLDIR">
<Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="no" Part="last" Action="set" System="yes" />
</Component>

</Product>`
);

// Ensure INSTALLDIR is properly defined in the existing ProgramFilesFolder
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
'<Directory Id="ProgramFilesFolder">',
`<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="API Testing" />`
);
}
}
}
],
Expand Down
57 changes: 18 additions & 39 deletions console/atest-desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion console/atest-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"publish": "electron-forge publish"
},
"engines": {
"node": "22.12.0"
"node": ">=22.12.0"
},
"author": "linuxsuren",
"license": "ISC",
Expand Down
Loading