Compare commits

...

2 Commits

Author SHA1 Message Date
sigonasr2, Sig, Sigo 2d42bb9fa9 Update web.sh 2 years ago
sigonasr2, Sig, Sigo ac87796b66 Update web.sh 2 years ago
  1. 2
      C++/scripts/build.sh
  2. 2
      C++/scripts/commit.sh
  3. 6
      C++/scripts/md5
  4. 7
      C++/scripts/web.sh

@ -1,5 +1,5 @@
#Compiles the entire program then runs it, producing an executable. #Compiles the entire program then runs it, producing an executable.
#C #C++
printf "Running program...\n\n\n" printf "Running program...\n\n\n"
if g++ $(find . -type f -name "*.cpp") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then if g++ $(find . -type f -name "*.cpp") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
./${PROJECT_NAME} "$@" ./${PROJECT_NAME} "$@"

@ -1,5 +1,5 @@
#Adds a commit message and pushes project to github repository. #Adds a commit message and pushes project to github repository.
#C #C++
COMMIT_MESSAGE="$*" COMMIT_MESSAGE="$*"
FIRST_LINE=true FIRST_LINE=true
while IFS= read -r line while IFS= read -r line

@ -1,4 +1,4 @@
build.sh:50a30b43fe30f45d4b7776f1929f359e - build.sh:530634457ea9041267c05d4ced95eee1 -
commit.sh:89783d2e6a165aa9612c79cfbd804a35 - commit.sh:d03a46e721060c22ccb146e19d27e70a -
update.sh:7fda194f24fbd8779221066cbbc04b3f - update.sh:7fda194f24fbd8779221066cbbc04b3f -
web.sh:3fdcf079bbabf079cc24c32fa7133c40 - web.sh:3229cb0053cd0ca4ea08cc90e0d50ad0 -

@ -6,4 +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 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 fi
emrun ${PROJECT_NAME}.html if [ "$1" == "headless" ]; then
echo "Running as headless web server"
emrun --no_browser ${PROJECT_NAME}.html
else
emrun --serve_after_close ${PROJECT_NAME}.html
fi

Loading…
Cancel
Save