From 90fd75536329aed933602fd0b547ed39825a5730 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 22 Mar 2016 00:02:16 -0700 Subject: [PATCH] fix zip bundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this change, the zip command would include the full path on my machine in the zip file, i.e. /Users/feross/… --- bin/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/package.js b/bin/package.js index e5701214..03781909 100755 --- a/bin/package.js +++ b/bin/package.js @@ -209,7 +209,7 @@ function buildDarwin (cb) { // Create .zip file (used by the auto-updater) var zipPath = path.join(buildPath[0], BUILD_NAME + '.zip') - cp.execSync(`zip -r -y ${zipPath} ${appPath}`) + cp.execSync(`pushd ${buildPath[0]} && zip -r -y ${zipPath} ${config.APP_NAME + '.app'} && popd`) // Create a .dmg (OS X disk image) file, for easy user installation. var dmgOpts = {