aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


tools/client/build_wasm_container.sh (411B)


      1 #!/bin/bash
      2 set -euo pipefail
      3 
      4 # Copy current sources without importing host toolchains or build caches.
      5 tar -C /source --exclude=client/build -cf - .gitignore Makefile client tools/client \
      6     | tar -xf -
      7 GIT_DIR=$(git -C /source rev-parse --absolute-git-dir)
      8 export GIT_DIR GIT_WORK_TREE=/build
      9 
     10 # Keep all intermediate files inside the disposable container.
     11 make wasm -j8
     12 cp server/assets/client/* /output/