From 47bca440d32f1d5ff5c0cf681967e558e2ad5457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20H=C3=B6rdt?= <6329417-neop_@users.noreply.gitlab.com> Date: Wed, 7 Aug 2024 22:27:21 +0200 Subject: [PATCH] really minimal emscripten shell adapted from https://github.com/emscripten-core/emscripten/blob/91504884e87bd9d436bf3d0a66aba34ebd095d01/src/shell_minimal.html --- .gitignore | 3 ++- build-web.sh | 2 +- emscripten_shell.html | 49 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 emscripten_shell.html diff --git a/.gitignore b/.gitignore index 061ed91..fb2f0de 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ !main.cpp !screenshot.png !build.sh -!build-web.sh \ No newline at end of file +!build-web.sh +!emscripten_shell.html \ No newline at end of file diff --git a/build-web.sh b/build-web.sh index 584a7ef..6da709e 100755 --- a/build-web.sh +++ b/build-web.sh @@ -1,2 +1,2 @@ #!/bin/bash -/usr/lib/emscripten/em++ -std=c++26 --use-port=sdl2 -O2 --emrun -sASSERTIONS -o index.html main.cpp \ No newline at end of file +/usr/lib/emscripten/em++ -std=c++26 --use-port=sdl2 -O2 --emrun --shell-file emscripten_shell.html -sASSERTIONS -o index.html main.cpp \ No newline at end of file diff --git a/emscripten_shell.html b/emscripten_shell.html new file mode 100644 index 0000000..0f3a78b --- /dev/null +++ b/emscripten_shell.html @@ -0,0 +1,49 @@ + + + + + + + Randomwalk + + + + + + + {{{ SCRIPT }}} + + + \ No newline at end of file