Files
ArchiSteamFarm/docs/build.sh
JustArchi 06f89e0611 Misc
2018-04-24 00:01:37 +02:00

26 lines
503 B
Bash
Executable File

#!/bin/bash
set -eu
SOURCE="WebConfigGenerator" # Relative to script directory
OUTPUT="${SOURCE}/dist" # Relative to script directory
cd "$(dirname "$(readlink -f "$0")")"
git pull
npm install --prefix "$SOURCE"
npm run build --prefix "$SOURCE"
while read FILE; do
rm -f "$FILE"
done < <(find . -mindepth 1 -maxdepth 1 -type l)
while read FILE; do
ln -s "$FILE" .
done < <(find "$OUTPUT" -mindepth 1 -maxdepth 1)
git reset
git add -A "$OUTPUT"
git commit -m "WebConfigGenerator build"
git push