From cb0ac66e0d1afe633e7da7c35cc7d36f4694fb21 Mon Sep 17 00:00:00 2001 From: hensm Date: Fri, 21 Jun 2019 14:26:38 +0100 Subject: [PATCH] Fix pkg issue with temp executable name on Windows --- app/bin/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bin/build.js b/app/bin/build.js index bfe734e..6dfdb23 100644 --- a/app/bin/build.js +++ b/app/bin/build.js @@ -184,7 +184,7 @@ async function build () { * With the BUILD_PATH/bridge dir, cannot build to * BUILD_PATH/bridge file. */ - const tempExecutableName = `${executableName[argv.platform]}.temp`; + const tempExecutableName = `_${executableName[argv.platform]}`; // Run pkg to create a single executable await pkg.exec([ @@ -329,7 +329,7 @@ function packageDarwin ( fs.ensureDirSync(rootManifestPath, { recursive: true }); // Move files to root - fs.moveSync(path.join(BUILD_PATH, `${platformExecutableName}.temp`) + fs.moveSync(path.join(BUILD_PATH, `_${platformExecutableName}`) , path.join(rootExecutablePath, platformExecutableName)); fs.moveSync(path.join(BUILD_PATH, manifestName) , path.join(rootManifestPath, manifestName));