mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Move WebConfigGenerator to /docs in master branch
This commit is contained in:
25
docs/build.sh
Normal file
25
docs/build.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/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 -f "$OUTPUT"
|
||||
git commit -m "WebConfigGenerator build"
|
||||
git push
|
||||
Reference in New Issue
Block a user