build.sh 407 B

1234567
  1. #!/bin/bash
  2. # builds the stub with zig (python3 -m ziglang) and puts it next to a live WE install: build.sh [we28 dir]
  3. set -e
  4. HERE=$(cd "$(dirname "$0")" && pwd)
  5. WE=${1:-${WE_LIVE_DIR:-$HOME/.local/share/we_live}/we28}
  6. python3 -m ziglang cc -target x86_64-windows-gnu -O2 -shared -o "$WE/CUESDK.x64_2017.dll" "$HERE/cuesdk_stub.c"
  7. echo "stub installed in $WE (remove the file to get the plugin without it)"