mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
run npm install if needed in buildAssets.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user