hyper/package.sh

23 lines
612 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 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/
2016-07-08 04:48:26 -08:00
mkdir dist
electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="$VERSION" --osx-sign --icon=static/icon.icns --prune --ignore=app/
cd dist/HyperTerm-darwin-x64/
2016-07-08 04:48:26 -08:00
zip -r -y ../hyperterm-macos-x64-$VERSION.zip .
cd -