* fix build * glcanvas is already present * screen size * minimize * add test * screen size * cleanup * use primitives directly * avoid option in actions because mongo strips null values * cleanup * cleanup * cleanup * cleanup
33 lines
401 B
Bash
Executable file
33 lines
401 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
RELEASE=no
|
|
|
|
# Parse primary commands
|
|
while [[ $# -gt 0 ]]; do
|
|
key="$1"
|
|
case $key in
|
|
--release)
|
|
RELEASE=yes
|
|
shift
|
|
;;
|
|
|
|
*)
|
|
POSITIONAL+=("$1")
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
|
|
ARGS="--dev --debug"
|
|
if [ "$RELEASE" = "yes" ]; then
|
|
ARGS=""
|
|
fi
|
|
|
|
echo "Building server with release=$RELEASE..."
|
|
pushd server
|
|
wasm-pack build $ARGS --target nodejs
|
|
popd
|
|
|
|
echo "Done!"
|