Compare commits

...

2 Commits

Author SHA1 Message Date
sigonasr2 ce2fa2c9e6 Perform merge 2 years ago
sigonasr2 f95382630f Include buildtemplate building for the web using a custom file. 2 years ago
  1. 2
      C++/scripts/md5
  2. 3
      C++/scripts/web.sh

@ -1,3 +1,3 @@
build.sh:530634457ea9041267c05d4ced95eee1 -
commit.sh:d03a46e721060c22ccb146e19d27e70a -
web.sh:3229cb0053cd0ca4ea08cc90e0d50ad0 -
web.sh:241ce74055952325f82f009b494df250 -

@ -6,6 +6,9 @@ else
em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h
fi
cp buildtemplate.html ${PROJECT_NAME}.html
sed -i "s/_REPLACEME_/$PROJECT_NAME.js/" ${PROJECT_NAME}.html
if [ "$1" == "headless" ]; then
echo "Running as headless web server"
emrun --no_browser ${PROJECT_NAME}.html

Loading…
Cancel
Save