mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
22 lines
412 B
Bash
Executable File
22 lines
412 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
OUT="@out@"
|
|
PATH="@path@:$PATH"
|
|
|
|
PKGNAME="vtfedit"
|
|
PKGBIN="$OUT/share/lib/VTFEdit.exe"
|
|
|
|
export WINEDEBUG="-all"
|
|
export WINEPREFIX="$HOME/.local/share/$PKGNAME/wine"
|
|
|
|
if [[ ! -d "$WINEPREFIX" ]]; then
|
|
echo "Initialising the Wine prefix..."
|
|
WINEDLLOVERRIDES="mscoree=" winetricks -q winxp
|
|
echo "Installing DLLs..."
|
|
winetricks -q dlls dotnet20 vcrun2005
|
|
fi
|
|
|
|
wine "$PKGBIN" "$@"
|