This adds an archive step to `build.sh` and adds `build/web`. The archive is a tgz that contains the contents of `public`, which only consists of the files needed for a simple static web server. The files in `build/web` are almost identical to the mac build, except that they use the `/web/` path and install the emscripten SDK.
15 lines
386 B
Bash
Executable File
15 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
|
|
curl -OL https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip
|
|
unzip -q ninja-mac.zip
|
|
chmod +x ninja
|
|
export PATH="$PWD:$PATH"
|
|
|
|
curl -L https://github.com/juj/emsdk/archive/0d8576c.zip > emsdk.zip
|
|
unzip emsdk.zip
|
|
mv emsdk-* emsdk
|
|
emsdk/emsdk update
|
|
emsdk/emsdk install sdk-1.38.11-64bit
|
|
emsdk/emsdk activate sdk-1.38.11-64bit
|
|
export EMSDK="$PWD/emsdk"
|