Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit c837e94

Browse files
committed
build: add easy linux build script
1 parent 4c7ca85 commit c837e94

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
# Script to build the webapp locally on Linux
3+
4+
set -e
5+
6+
# check if the 'webapp' folder exists and remove it
7+
WEBAPP_PATH="$(pwd)/webapp"
8+
if [ -d "$WEBAPP_PATH" ]; then
9+
rm -rf "$WEBAPP_PATH"
10+
echo "Deleted existing webapp folder."
11+
fi
12+
13+
# install dependencies using Yarn
14+
yarn install
15+
echo "Yarn install completed."
16+
17+
# build the app
18+
yarn build
19+
20+
# copy LATEST.md to webapp
21+
cp "$(pwd)/LATEST.md" "$WEBAPP_PATH/LATEST.md"
22+
echo "Yarn build completed."
23+
24+
# start a Python HTTP server to serve webapp/index.html
25+
echo "Running Python HTTP server..."
26+
python3 -m http.server 8000 --directory "$WEBAPP_PATH"

0 commit comments

Comments
 (0)