Last active
October 18, 2022 23:20
-
-
Save ohmypxl/643c9ceba2a827afa65eb18794a374c3 to your computer and use it in GitHub Desktop.
Lutris wine app install/runner, for samp is okay.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
clear | |
echo "+----------------------+" | |
echo "| App Installer v0.3 |" | |
echo "| By: Aiura |" | |
echo "+----------------------+" | |
echo | |
# If supplied argument is not 1 | |
if [[ $# -eq 0 || $# -gt 1 ]]; then | |
echo "USAGE: $0 app_install.exe" | |
exit $? | |
fi | |
# If supplied argument file doesn't exist | |
if ! [[ -f "$1" ]]; then | |
echo "$1 is not exists." | |
exit $? | |
fi | |
# Get current WINE directory | |
DIR="$( cd "$( dirname "$0" )" && pwd )" | |
# Get latest lutris wine version | |
WINEPATH="$(ls -t1 -d $HOME/.local/share/lutris/runners/wine/lutris-*/bin | head -n1)" | |
# Execute the installer | |
WINEPREFIX=$DIR WINEARCH=win32 $WINEPATH/wine $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
/home/username/Games/gta-san-andreas
)app.exe can be anything, for example:
./app-install.sh ~/Downloads/gta_addons_installer.exe