Skip to content
Snippets Groups Projects
Commit 857d5aaf authored by David Verelst's avatar David Verelst
Browse files

add wine-hawc2 auto config script

parent e43a2090
No related branches found
No related tags found
No related merge requests found
Pipeline #
#!/bin/bash
if [$1 == ''] ; then
WINEDIR=~/.wine32
fi
HAWC2EXES=/home/MET/hawc2exe/*
#mv .wine .wine_$(date +%Y%m%d_%H%M%S);
WINEARCH=win32 WINEPREFIX=$WINEDIR winecfg
mkdir -p /home/$USER/$WINEDIR/drive_c/bin/
echo "-------- copying HAWC2 executables from/to:"
echo "$HAWC2EXES"
echo "$WINEDIR"
cp $HAWC2EXES /home/$USER/$WINEDIR
echo "-------- add $WINEDIR/drive_c/bin/ to wine system PATH"
wine regedit /E tmp.reg "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment"
sed -i 's/"PATH"="C:\\\\windows\\\\system32;C:\\\\windows"/"PATH"="C:\\\\windows\\\\system32;C:\\\\windows;C:\\\\bin"/g' tmp.reg
wine regedit ./tmp.reg
rm ./tmp.reg
echo "-------- See if HAWC2 runs..."
wine hawc2-123-beta.exe
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment