1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 05:02:45 +01:00

run npm install if needed in buildAssets.sh

This commit is contained in:
Danny Coates 2019-01-03 13:56:32 -08:00
parent a79400f99f
commit 5e5af03d11
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -1,6 +1,12 @@
#!/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
cp -R ../../dist/* src/main/assets
cp -R ../../dist/* src/main/assets