clash/scripts/build-remote-server.sh
Gregor Zeitlinger 0a398584c5
Client (#90)
* 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
2024-12-29 14:20:37 +01:00

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!"