| 1234567891011121314151617181920212223 |
- #!/bin/bash
- # Restore the runtime artifacts into the sandbox working directory.
- # Use after a fresh clone of uunicorn/synaWudfBioUsb-sandbox (work/synaWudfBioUsb-sandbox):
- # git clone https://github.com/uunicorn/synaWudfBioUsb-sandbox work/synaWudfBioUsb-sandbox
- # work/artifacts/sync-to-sandbox.sh
- set -eu
- ROOT=/home/nebulon/projects/fingerprint
- SANDBOX=${1:-$ROOT/work/synaWudfBioUsb-sandbox}
- A=$ROOT/work/artifacts/sandbox
- [ -d "$SANDBOX" ] || { echo "sandbox dir missing: $SANDBOX" >&2; exit 1; }
- # vendor driver DLLs (kept in driverdlls/ in this repo)
- cp -f "$ROOT/driverdlls/synaWudfBioUsb.dll" "$SANDBOX/" || echo "WARN: driverdlls/synaWudfBioUsb.dll missing" >&2
- # trust/calibration state + device id + MinGW runtime DLLs + patched binaries
- cp -f "$A"/*.blob "$A"/*.uint "$A/usb.txt" "$A"/*.dll "$SANDBOX/"
- cp -f "$A/verify.exe" "$A/enroll.exe" "$A/delete.exe" "$SANDBOX/"
- chmod +x "$SANDBOX/verify.exe" "$SANDBOX/enroll.exe" "$SANDBOX/delete.exe" 2>/dev/null || true
- echo "artifacts restored to $SANDBOX"
- echo "note: a.exe / sources come from the git clone itself."
|