From 5d931573cbe34ef1bc9f5b42ae23b4a00fa12b44 Mon Sep 17 00:00:00 2001 From: viralgupta Date: Tue, 13 Aug 2024 01:38:20 +0530 Subject: [PATCH] refactor: Improve bundler.js logic for handling projectRunner apps --- src/modules/bundler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bundler.js b/src/modules/bundler.js index 5f38692..1dfcd9f 100644 --- a/src/modules/bundler.js +++ b/src/modules/bundler.js @@ -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}`); }