From cd1610e09dcce390ba49d5bb9b79854cd764df2c Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 1 Jul 2016 18:44:31 -0700 Subject: [PATCH] interesting workaround to have nice zip structure with `bestzip` --- package.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.sh b/package.sh index 0dccaabf..e644c8e8 100755 --- a/package.sh +++ b/package.sh @@ -19,4 +19,7 @@ cp -r app/dist build/ electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="$VERSION" --osx-sign --icon=icon.icns --prune --ignore=app rm -rf ./build/ npm install bestzip@1.1.2 -bestzip dist/hyperterm-macos-x64-$VERSION.zip dist/HyperTerm-darwin-x64 +cd dist/HyperTerm-darwin-x64/ +# avoid weird paths inside the zip +../../node_modules/.bin/bestzip ../hyperterm-macos-x64-$VERSION.zip . +cd -