-
Notifications
You must be signed in to change notification settings - Fork 37
/
pack-heimdall-lite.sh
executable file
·40 lines (26 loc) · 872 Bytes
/
pack-heimdall-lite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # do not hide errors within pipes
ORIGINAL=$PWD
echo $ORIGINAL
cd "${npm_config_heimdall:-../heimdall2}"
cd apps/frontend
git switch "${npm_config_branch:-master}"
echo "Executing - git fetch ..."
git fetch
echo "Executing - git pull ..."
git pull
echo "Executing - yarn install ..."
CYPRESS_INSTALL_BINARY=0 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install
echo "Executing - yarn pack ..."
yarn pack
echo "Finished generating the tarball"
cd "$ORIGINAL"
echo "Executing - npm install remote ..."
npm i
echo "Executing - npm install local ..."
npm i "${npm_config_heimdall:-../heimdall2}/apps/frontend/mitre-heimdall-lite-v"*".tgz"
echo "Executing - npm run prepack ..."
npm run prepack
echo "Install of local heimdall-lite complete."