30 lines
544 B
Bash
Executable File
30 lines
544 B
Bash
Executable File
#!/bin/bash -eux
|
|
|
|
source common.sh
|
|
|
|
rm -rf "$BUILD_DIR"
|
|
rm -rf "$WWW_DIR"
|
|
|
|
# Emscripten comes with ports for most of these, but they don't compile
|
|
# with pthread support. Wipe the cache and build them ourselves.
|
|
emcc --clear-cache --clear-ports
|
|
|
|
./fetch_sources.sh
|
|
|
|
# Dependencies
|
|
./build_zstd.sh
|
|
./build_libarchive.sh # uses zstd
|
|
./build_webshims.sh
|
|
./build_openssl.sh
|
|
./build_curl.sh # uses webshims, openssl, zlib
|
|
./build_libzip.sh
|
|
|
|
# Luanti
|
|
./build_luanti.sh
|
|
|
|
# Virtual file system
|
|
./build_fsroot.sh
|
|
|
|
# Finished product
|
|
./build_www.sh
|