dist -> build

This commit is contained in:
Guillermo Rauch 2016-07-01 16:20:02 -07:00
parent 7c77203566
commit af482e0eb4
2 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ node_modules
.next .next
npm-debug.log npm-debug.log
dist dist
build

View file

@ -4,6 +4,7 @@ rm -rf node_modules
rm -rf ./app/node_modules rm -rf ./app/node_modules
rm -rf ./dist/HyperTerm-darwin-x64 rm -rf ./dist/HyperTerm-darwin-x64
rm -rf ./dist/ rm -rf ./dist/
rm -rf ./build/
mkdir dist mkdir dist
./install.sh ./install.sh
npm run lint npm run lint
@ -12,6 +13,7 @@ npm install
npm run lint npm run lint
npm run build npm run build
cd - cd -
cp app/index.html dist/ cp app/index.html build/
cp -r app/dist dist/ 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 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/