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
|
2016-07-01 15:16:03 -08:00
|
|
|
rm -rf ./dist/HyperTerm-darwin-x64
|
|
|
|
|
rm -rf ./dist/
|
2016-07-01 13:31:57 -08:00
|
|
|
mkdir dist
|
|
|
|
|
./install.sh
|
2016-07-01 15:16:03 -08:00
|
|
|
npm run lint
|
2016-07-01 13:31:57 -08:00
|
|
|
cd app
|
|
|
|
|
npm install
|
2016-07-01 15:16:03 -08:00
|
|
|
npm run lint
|
2016-07-01 13:31:57 -08:00
|
|
|
npm run build
|
|
|
|
|
cd -
|
|
|
|
|
cp app/index.html dist/
|
2016-07-01 13:38:35 -08:00
|
|
|
cp -r app/dist dist/
|
2016-07-01 15:16:03 -08:00
|
|
|
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
|