Skip to content

Instantly share code, notes, and snippets.

@ohmypxl
Last active October 18, 2022 23:20
Show Gist options
  • Save ohmypxl/643c9ceba2a827afa65eb18794a374c3 to your computer and use it in GitHub Desktop.
Save ohmypxl/643c9ceba2a827afa65eb18794a374c3 to your computer and use it in GitHub Desktop.
Lutris wine app install/runner, for samp is okay.
#!/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
@ohmypxl
Copy link
Author

ohmypxl commented Oct 17, 2022

Usage:

  1. Download and that script above to your lutris game directory file, (i.e /home/username/Games/gta-san-andreas)
  2. Type the following command:
./app-install.sh app.exe

app.exe can be anything, for example:

./app-install.sh ~/Downloads/gta_addons_installer.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment