2016-04-19 06:05:55 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#? Package the app
|
|
|
|
|
2016-04-21 05:47:03 +00:00
|
|
|
echo "-- REMOVING DIST FOLDER --"
|
2016-04-20 02:14:53 +00:00
|
|
|
rm -r dist/*
|
2016-04-21 05:47:03 +00:00
|
|
|
|
|
|
|
echo "-- BUILDING PRODUCTION APP --"
|
2016-04-20 06:09:46 +00:00
|
|
|
NODE_ENV=production node -r babel-register ./node_modules/.bin/webpack --config ./webpack/webpack.config.production.js
|
|
|
|
|
2016-04-21 05:47:03 +00:00
|
|
|
echo "-- COPYING REMAINING FILES --"
|
|
|
|
|
|
|
|
cp -r app/package.json app/app.js app/external dist/
|
|
|
|
|
|
|
|
echo "-- INSTALLING PACKAGES --"
|
|
|
|
|
2016-04-20 06:09:46 +00:00
|
|
|
cp -r app/node_modules dist/
|
|
|
|
# cd dist/; NODE_ENV=production npm install; cd ..
|
|
|
|
|
2016-04-21 05:47:03 +00:00
|
|
|
echo "-- PACKAGING APP --"
|
|
|
|
|
2016-04-20 06:09:46 +00:00
|
|
|
node -r babel-register node_modules/electron-packager/cli.js \
|
|
|
|
dist \
|
|
|
|
Insomnia \
|
2016-04-21 19:58:20 +00:00
|
|
|
--all \
|
2016-04-23 03:54:55 +00:00
|
|
|
--asar \
|
2016-04-21 19:58:20 +00:00
|
|
|
--build-version=1 \
|
2016-04-23 03:54:55 +00:00
|
|
|
--app-version=3.0.0 \
|
2016-04-21 19:58:20 +00:00
|
|
|
--version-string.CompanyName=schier.co \
|
2016-04-21 06:00:18 +00:00
|
|
|
--version-string.ProductName="Insomnia REST Client" \
|
2016-04-21 19:58:20 +00:00
|
|
|
--version-string.FileDescription="FileDescription" \
|
|
|
|
--version-string.OriginalFilename="insomnia" \
|
|
|
|
--version-string.InternalName="insomnia" \
|
2016-04-21 06:00:18 +00:00
|
|
|
--download.strictSSL=true \
|
2016-04-21 19:58:20 +00:00
|
|
|
--icon=assets/icon \
|
2016-04-20 06:09:46 +00:00
|
|
|
--out=builds \
|
2016-04-23 03:54:55 +00:00
|
|
|
--overwrite
|
2016-04-20 06:09:46 +00:00
|
|
|
|
2016-04-23 03:54:55 +00:00
|
|
|
echo "-- PACKAGING COMPLETE --"
|