run npm install if needed in buildAssets.sh
This commit is contained in:
parent
a79400f99f
commit
5e5af03d11
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -d "../../node_modules" ]
|
||||
then
|
||||
echo "node_modules already present."
|
||||
else
|
||||
echo "node_modules not present, running npm install."
|
||||
npm install
|
||||
fi
|
||||
npm run build
|
||||
rm -rf src/main/assets
|
||||
mkdir -p src/main/assets
|
||||
|
|
Loading…
Reference in a new issue