| 123456789101112 |
- #!/bin/bash
- # Run the Wine validity sandbox with the environment the fake winusb expects.
- # Usage: run_aexe.sh [nop|enroll|identify] [binary] (binary defaults to a.exe)
- export WINEPREFIX=/home/nebulon/projects/fingerprint/work/wineprefix-48
- export WINEDEBUG=+winusb,warn+winusb,+usb
- WINE64=/home/nebulon/projects/fingerprint/work/wine-build/install/bin/wine64
- cd /home/nebulon/projects/fingerprint/work/synaWudfBioUsb-sandbox || exit 1
- export USB_SCRIPT="/home/nebulon/projects/fingerprint/work/debug/usb-$(date +%s).txt"
- export USB_PLAYBACK=""
- touch "$USB_SCRIPT"
- BIN="${2:-a.exe}"
- "$WINE64" "$BIN" "${1:-nop}"
|