fix zip bundle

Before this change, the zip command would include the full path on my
machine in the zip file, i.e. /Users/feross/…
This commit is contained in:
Feross Aboukhadijeh
2016-03-22 00:02:16 -07:00
parent 8f75439d4c
commit 90fd755363

View File

@@ -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 = {