nixpkgs/pkgs/by-name/vt/vtfedit/vtfedit.bash
2024-12-06 21:05:50 +03:00

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" "$@"