interesting workaround to have nice zip structure with bestzip

This commit is contained in:
Guillermo Rauch 2016-07-01 18:44:31 -07:00
parent c3aeb7145e
commit cd1610e09d

View file

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