Last active
February 27, 2025 03:00
-
-
Save shmerl/a2867c5a675ed1795f03326b32b47fe7 to your computer and use it in GitHub Desktop.
Environment setting for custom Wine usage
This file contains 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/bash | |
# Helper script for wine_run.sh / winetricks_run.sh | |
# Sets environment. See wine_run.sh for details on | |
# configurable variables usage. | |
# $wine variable is a shortcut, setting /opt/$wine for $wine_path | |
# But explicitly set $wine_path takes priority. | |
if [[ "${wine+isset}" ]] && ! [[ "${wine_path+isset}" ]]; then | |
wine_path="/opt/${wine}" | |
fi | |
if [[ "${wine_path+isset}" ]]; then | |
export PATH=${wine_path}/bin:$PATH | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to use latest Wine which got rid of wine64 binary. Also no more need for LD_LIBRARY_PATH.