2019-07-09 22:41:49 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
rm -rf bin
|
|
|
|
mkdir bin
|
|
|
|
|
2020-05-26 19:04:11 +02:00
|
|
|
rm -rf build
|
|
|
|
mkdir build
|
|
|
|
|
|
|
|
npm install
|
|
|
|
|
2019-07-09 22:41:49 +02:00
|
|
|
npm run babel . -- --ignore node_modules --out-dir build
|
|
|
|
|
2020-05-26 19:04:11 +02:00
|
|
|
cp package.json build/package.json
|
2019-07-09 22:41:49 +02:00
|
|
|
|
2020-05-26 19:04:11 +02:00
|
|
|
./node_modules/.bin/pkg ./build/package.json --targets node12-win-x64 --output bin/bgpalerter-win-x64 --loglevel=error
|
2019-07-09 22:41:49 +02:00
|
|
|
|
2020-05-26 19:04:11 +02:00
|
|
|
./node_modules/.bin/pkg ./build/package.json --targets node12-linux-x64 --output bin/bgpalerter-linux-x64 --loglevel=error
|
2019-07-09 22:41:49 +02:00
|
|
|
|
2020-05-26 19:04:11 +02:00
|
|
|
./node_modules/.bin/pkg ./build/package.json --targets node12-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error
|
2019-07-09 22:41:49 +02:00
|
|
|
|
2020-05-26 19:04:11 +02:00
|
|
|
echo "--> BGPalerter compiled in bin/ (ignore the warnings about files that cannot be resolved)."
|
2019-07-09 22:41:49 +02:00
|
|
|
|
|
|
|
rm -rf build
|