diff --git a/build/platform.emscripten.mak b/build/platform.emscripten.mak index eaa3d0d05..ac856c8ba 100644 --- a/build/platform.emscripten.mak +++ b/build/platform.emscripten.mak @@ -1,5 +1,16 @@ TOOLCHAIN = emscripten USE_LIBA = 0 -EXE = html +EXE = js OS_WITH_ONBOARDING_APP ?= 0 OS_WITH_SOFTWARE_UPDATE_PROMPT ?= 0 + +numworks_simulator.zip: LDFLAGS += --memory-init-file 0 +numworks_simulator.zip: app.js + @rm -rf $(basename $@) + @mkdir $(basename $@) + @cp app.js $(basename $@)/firmware.js + @cp ion/src/emscripten/background.jpg $(basename $@)/ + @cp ion/src/emscripten/simulator.html $(basename $@)/ + @echo "ZIP $@" + @zip -r -9 $@ $(basename $@) > /dev/null + @rm -rf $(basename $@) diff --git a/build/toolchain.emscripten.mak b/build/toolchain.emscripten.mak index 88f8a5ebe..aeb11453c 100644 --- a/build/toolchain.emscripten.mak +++ b/build/toolchain.emscripten.mak @@ -1,5 +1,5 @@ CC = emcc CXX = emcc LD = emcc -LDFLAGS = -s EXPORTED_FUNCTIONS="['_main', '_IonEventsEmscriptenPushEvent']" -Os --shell-file ion/src/emscripten/shell.html +LDFLAGS = -s EXPORTED_FUNCTIONS="['_main', '_IonEventsEmscriptenPushEvent']" -Os SIZE = size diff --git a/ion/src/emscripten/background.jpg b/ion/src/emscripten/background.jpg new file mode 100644 index 000000000..7ddd9787c Binary files /dev/null and b/ion/src/emscripten/background.jpg differ diff --git a/ion/src/emscripten/shell.html b/ion/src/emscripten/shell.html deleted file mode 100644 index 595a856d8..000000000 --- a/ion/src/emscripten/shell.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - Emscripten-Generated Code - - - -
-
emscripten
-
Downloading...
-
- -
-
- -
-
-
- Left - Up - Down - Right - OK -
-
- Resize canvas - Lock/hide mouse pointer -     - -
- -
- -
- - {{{ SCRIPT }}} - - diff --git a/ion/src/emscripten/simulator.html b/ion/src/emscripten/simulator.html new file mode 100644 index 000000000..2cc1201ac --- /dev/null +++ b/ion/src/emscripten/simulator.html @@ -0,0 +1,217 @@ + + + + + + + NumWorks graphing calculator + + + +
+

NumWorks simulator - beta version - contact@numworks.com

+
+
+ NumWorks Calculator + +
+ +
+ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + +