mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
21 lines
847 B
Bash
Executable file
21 lines
847 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Settings
|
|
DEBUG_SERVER_TAG=v2.2.0
|
|
DEBUG_SERVER_DLL_URL=https://github.com/willox/auxtools/releases/download/v2.2.0/debug_server.dll
|
|
DEBUG_SERVER_DLL_SHA256=495681eece67ff27019c56fbfc98cbf1d7f2a0442732aa34c342755926d8e122
|
|
|
|
# -----------------------------------------------------------------------------
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
mkdir -p "../target/deps"
|
|
cd "../target/deps"
|
|
|
|
AUXTOOLS_BUNDLE_DLL="$PWD/debug_server.dll"
|
|
echo "export AUXTOOLS_BUNDLE_DLL=$AUXTOOLS_BUNDLE_DLL"
|
|
echo "export AUXTOOLS_COMMIT_HASH=$DEBUG_SERVER_TAG"
|
|
|
|
if ! test -f "$AUXTOOLS_BUNDLE_DLL" || ! sha256sum -c <<<"$DEBUG_SERVER_DLL_SHA256 $AUXTOOLS_BUNDLE_DLL" >/dev/null 2>/dev/null; then
|
|
wget -q -O "$AUXTOOLS_BUNDLE_DLL" "$DEBUG_SERVER_DLL_URL" >&2
|
|
sha256sum -c <<<"$DEBUG_SERVER_DLL_SHA256 $AUXTOOLS_BUNDLE_DLL" >&2
|
|
fi
|