run_aexe.sh 614 B

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