1 parent 8ebccd7 commit 392a1afCopy full SHA for 392a1af
1 file changed
Build/Buildscripts/build.sh
@@ -4,11 +4,18 @@ set -e
4
echo "Building HTMLRunner"
5
6
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7
-ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" # one level up to /Build
+ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" # project root
8
+BUILD_DIR="$ROOT_DIR/Build" # e.g., Build/
9
+DIST_DIR="$BUILD_DIR/dist" # final output
10
-cd "$ROOT_DIR"
11
+cd "$BUILD_DIR"
12
13
npm install
14
npm run build
15
16
+echo "Copying extra files..."
17
+cp "$ROOT_DIR/favicon.png" "$DIST_DIR/"
18
+cp "$ROOT_DIR/manifest.json" "$DIST_DIR/"
19
+cp "$ROOT_DIR/service-worker.js" "$DIST_DIR/"
20
+
21
echo "Build completed."
0 commit comments