hyper/package.sh

23 lines
635 B
Bash
Raw Normal View History

2016-07-01 13:31:57 -08:00
#!/usr/bin/env bash
2016-07-01 14:06:07 -08:00
VERSION=`node -e 'process.stdout.write(require("./package").version)'`
2016-07-01 13:31:57 -08:00
rm -rf node_modules
rm -rf ./app/node_modules
rm -rf ./dist/HyperTerm-darwin-x64
rm -rf ./dist/
2016-07-01 15:20:02 -08:00
rm -rf ./build/
2016-07-01 13:31:57 -08:00
mkdir dist
2016-07-01 15:34:03 -08:00
mkdir build
2016-07-01 13:31:57 -08:00
./install.sh
npm run lint
2016-07-01 13:31:57 -08:00
cd app
npm install
npm run lint
2016-07-01 13:31:57 -08:00
npm run build
cd -
2016-07-01 15:20:02 -08:00
cp app/index.html build/
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
2016-07-01 15:20:02 -08:00
rm -rf ./build/
2016-07-01 17:17:51 -08:00
npm install bestzip@1.1.2
bestzip dist/hyperterm-macos-x64-$VERSION.zip dist/HyperTerm-darwin-x64