diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | README.md | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -5,6 +5,7 @@ ASSETS_DST = $(patsubst game/www/%,dist/%,$(ASSETS_SRC)) TEST_PORT ?= 8000 +EMSDK ?= /usr/lib/emscripten EMSDK_SYSROOT ?= $(EMSDK)/upstream/emscripten/cache/sysroot EMCC_CFLAGS := -O3 \ -sUSE_GLFW=3 \ @@ -25,7 +25,9 @@ cargo build --release --path game Web builds require the [emscripten](https://emscripten.org/docs/getting_started/downloads.html) toolchain. -Download emscripten, and make sure its added into your path. Also set the `EMSDK` env variable is set (often `/usr/lib/emscripten` when from a package manager). If you use the SDK and `source ./emsdk_env.sh` like the recommended installation instructions state, this should already be done for you. +Download emscripten, and make sure its added into your path. + +If you having build issues, make sure `EMSDK` is set to the library path of the toolchain. If you continue to have issues try installing emscripten though the git repo and the `emsdk` script. To build for web, invoke the makefile. The output website will be in `dist`. |