Skip to content

Commit

Permalink
refactor: Improve bundler.js logic for handling projectRunner apps
Browse files Browse the repository at this point in the history
  • Loading branch information
viralgupta committed Aug 12, 2024
1 parent 3a7a4ba commit 5d93157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports.bundleApp = async (isRelease, copyStorage) => {
for (let platform in constants.files.binaries) {
for (let arch in constants.files.binaries[platform]) {
let originalBinaryFile = constants.files.binaries[platform][arch];
let destinationBinaryFile = originalBinaryFile.replace('neutralino', binaryName);
let destinationBinaryFile = projectRunner.containsRunnerApp() ? originalBinaryFile : originalBinaryFile.replace('neutralino', binaryName);
if (fse.existsSync(`bin/${originalBinaryFile}`)) {
fse.copySync(`bin/${originalBinaryFile}`, `${buildDir}/${binaryName}/${destinationBinaryFile}`);
}
Expand Down

0 comments on commit 5d93157

Please sign in to comment.