Files
filament/build/web/ci-common.sh
Philip Rideout 837e01e5a9 Prep for WebGL on Kokoro. (#215)
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.
2018-09-06 14:30:25 -07:00

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"