From 7b02edca0f122843b4aa3751e4d517065046a5d4 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 22 Mar 2016 03:10:20 -0700 Subject: [PATCH] OS X packager: build to dist/ folder --- bin/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/package.js b/bin/package.js index 18504a2b..4c9c8cee 100755 --- a/bin/package.js +++ b/bin/package.js @@ -208,13 +208,13 @@ function buildDarwin (cb) { if (err) return cb(err) // Create .zip file (used by the auto-updater) - var zipPath = path.join(buildPath[0], BUILD_NAME + '.zip') + var zipPath = path.join(config.ROOT_PATH, 'dist', BUILD_NAME + '.zip') 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 = { basepath: config.ROOT_PATH, - target: path.join(buildPath[0], BUILD_NAME + '.dmg'), + target: path.join(config.ROOT_PATH, 'dist', BUILD_NAME + '.dmg'), specification: { title: config.APP_NAME, icon: config.APP_ICON + '.icns',