~melchizedek6809/WolkenWelten

ref: e910bd82e598d6f560b8899dd1d88fb3ed554cd3 WolkenWelten/tools/buildwasm -rwxr-xr-x 454 bytes
e910bd82Ben (X13/Arch) Updated contact info 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
EMSDK_TESTED_VERSION="2.0.27"
EMSDK_REPO_URL="https://github.com/emscripten-core/emsdk.git"

cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ..
DIR=`pwd`
if [ ! -d "platform/wasm/emsdk" ]; then
	cd "platform/wasm/"
	git clone "$EMSDK_REPO_URL"
fi
cd "platform/wasm/emsdk"
git pull
./emsdk install "$EMSDK_TESTED_VERSION"
./emsdk activate "$EMSDK_TESTED_VERSION"
cd "$DIR"

source "platform/wasm/emsdk/emsdk_env.sh"
make -j16 release.wasm