* Uncomment `patchelf` command for openssl, add prompt for AppImage
After testing manually on NixOS, it appears that `patchelf 0.15.0` is
able to properly patch out references to openssl libs in favor of
libcurl.
This change also adds a prompt for installing as an AppImage, allowing
the interactive mode to also install AM2R as a native binary.
* Move Mesa wrapper script into separate file
This is necessary to fix a bug in AM2RLauncher, wherein the game crashes
on launch because the Mesa workaround is not ported/included by the launcher.
* Add flag for patching OpenSSL, disable by default
* Add `-l` shorthand, update comment and `--help` text
* Remove AppImage check from interactive mode
* Update patcher.sh
Co-authored-by: Miepee <38186597+Miepee@users.noreply.github.com>
---------
Co-authored-by: Miepee <38186597+Miepee@users.noreply.github.com>
echo -e "-m, --hqmusic\t\t\tIf provided, high quality music will be used, otherwise low quality music will be used instead."
echo -e "-w, --systemwide\t\tIf provided, Linux will get installed systemwide, otherwise Linux will get installed portably. Has no effect on Android."
echo -e "-a, --appimage\t\t\tIf provided, an AppImage will get generated, otherwise the raw binary will get generated instead. Has no effect on Android."
echo -e "-l, --patchopenssl\t\t\tIf provided, the game binary will have the deprecated OpenSSL 1.0.0 dependency patched to point to libcurl. Has no effect for the AppImage option."
echo -e "-p, --prefix\t\t\tThe prefix used for patching operations. Default for systemwide is \"/usr/local\" and for non-systemwide \"<directory where this script resides>/am2r_<VersionNumber>\". As systemwide is ignored on Android, for Android this will always default to the latter option."
echo -e "-z, --am2rzip\t\t\tThe path to the AM2R_11 zip or directory. Default is \"<directory where the script resides>/AM2R_11.zip\""