summarylogtreecommitdiffstats
path: root/uniextract2
blob: 29b2f845022adfe19ab59cdd3c49856776ec565b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
export WINEPREFIX="$HOME/.local/share/wineprefixes/uniextract2"
export WINEDEBUG=-all

declare -a args

for arg; do
  if [[ "${arg:0:1}" = "-" ]]; then
    args+=("${arg/#-//}")
  else
    args+=("$(winepath -w "$arg")")
  fi
done

wine /opt/UniExtract2/UniExtract.exe "${args[@]}"