diff --git a/web/build.sh b/web/build.sh index 22d77f7..04c3aee 100755 --- a/web/build.sh +++ b/web/build.sh @@ -3,7 +3,11 @@ set -xe pushd build_web -BUILD_PATH_PREFIX_MAP=$(pwd)=. cmake --build . --parallel +if [ -f "index.html" ]; then + rm -rf index.html +fi + +cmake --build . --parallel if [ -f "eco2d.html" ]; then mv eco2d.html index.html fi diff --git a/web/deploy.sh b/web/deploy.sh index d027b80..17f135f 100755 --- a/web/deploy.sh +++ b/web/deploy.sh @@ -19,11 +19,6 @@ if [ ! -d "butler" ]; then popd fi -# Build web -if [ -f "build_web/index.html" ]; then - rm -rf build_web/index.html -fi - # Build the project web/build.sh