180 Commits

Author SHA1 Message Date
R1kaB3rN
1dbcace209
ulwgl_test.py: add test for env usage
- Test that options and the game are distinct arguments when executing the script via the environment variable usage.
2024-02-12 17:34:39 -08:00
R1kaB3rN
6987fde6c3
Change parsing of arguments
- Before, the executable and its options were joined as a single string to be executed. Instead, prefer separating them as distinct arguments. As a result, the command as an Array becomes something like:

['/home/foo/.local/share/ULWGL/ULWGL', '--verb', 'waitforexitandrun', '--', '/home/foo/GE-Proton8-30/proton', 'waitforexitandrun', '/home/foo/foo.exe', '-foo', '-bar', '-baz']
2024-02-12 17:19:58 -08:00
R1kaB3rN
2e8faa1f41
Delete print statements 2024-02-12 00:29:20 -08:00
R1kaB3rN
f73ef0f268
Fix bug that ignores arguments
- After specifying the executable, all arguments following the first were ignored unless they were escaped to be interpreted as part of the first argument.
2024-02-12 00:27:30 -08:00
R1kaB3rN
f28d170994
Symlink ulwgl-run to ulwgl_run.py 2024-02-12 00:13:28 -08:00
R1kaB3rN
d6eb1c8484
Rename gamelauncher files 2024-02-12 00:12:29 -08:00
R1kaB3rN
e1414dd460
Rename ulwgl-run to ulwgl-run-posix 2024-02-12 00:04:01 -08:00
GloriousEggroll
3cb00833d3 bump proton version 2024-02-11 18:58:52 -07:00
R1kaB3rN
9edc4d6d30
gamelauncher.py: update comments 2024-02-11 10:28:59 -08:00
R1kaB3rN
86f04a939e
gamelauncher_test.py: update tests for new usage 2024-02-11 10:28:49 -08:00
R1kaB3rN
490ecd1bb0
gamelauncher.py: define return type to game drive 2024-02-11 09:59:14 -08:00
R1kaB3rN
0712a21d48
gamelauncher.py: move config checks to check_env 2024-02-11 09:58:40 -08:00
R1kaB3rN
db6c81eacb
gamelauncher.py: update comments 2024-02-10 18:10:18 -08:00
R1kaB3rN
9b0402074c
gamelauncher.py: add PROTON_VERB to build_command 2024-02-10 18:09:59 -08:00
R1kaB3rN
bba9f0d060
gamelauncher.py: refactor main
- Move environment variable functionality to set_env and execute it for both usages.
2024-02-10 18:09:18 -08:00
R1kaB3rN
9642748cb0
gamelauncher.py: move setup_pfx to main 2024-02-10 18:03:45 -08:00
R1kaB3rN
d0dbe23663
gamelauncher.py: update parse_args
- Reimplement parse_args to simply return a single positional argument string or a Namespace object. As a result the new usage will be:

$ gamelauncher.py /home/foo/foo.exe
$ gamelauncher.py /home/foo/foo.exe -opengl ...
$ gamelauncher.py --config example.toml

- Everything following the program will be interpreted as a single positional argument and this removes the need for quotes for the envvar usage. The optional arguments: --exe, --options, --store and --verb will no longer be supported.
2024-02-10 18:01:12 -08:00
GloriousEggroll
fc91d60e65 ulwgl-run: update ULWGL proton version 2024-02-10 00:49:06 -07:00
Thomas Crider
4b483f1aa8
Update README.md -- change gamelauncher.sh references to ulwgl-run 2024-02-10 00:18:58 -07:00
R1kaB3rN
81f5b36a8c
Merge pull request #19 from R1kaB3rN/local-share
gamelauncher.py: support finding ULWGL in $HOME/.local/share in addition to the current working directory and give it priority
2024-02-09 20:10:46 -08:00
R1kaB3rN
fc9cfb1247
gamelauncher.py: support finding _v2-entry-point in $HOME/.local/share 2024-02-09 20:04:48 -08:00
R1kaB3rN
a4c320096d
Merge pull request #20 from R1kaB3rN/ulwgl-id
Support ULWGL_ID env var
2024-02-09 19:53:03 -08:00
R1kaB3rN
4622516693
Add --store option to gamelauncher
- Enable users to optionally specify the game's distribution platform (store). This allows them to properly apply a fix from a specific store rather than Steam's to their game's WINE prefix. As a side effect, this allows users to apply a protonfix from other stores (e.g. gog).
2024-02-09 19:42:22 -08:00
R1kaB3rN
b5a3ac2b0f
Support setting ULWGL_ID
- Set STEAM_COMPAT_APP_ID to a valid ULWGL_ID to allow applying non-steam protonfixes to games.

- Related to c3c016bcdc and 99b3166e83.
2024-02-09 19:39:15 -08:00
R1kaB3rN
066e869485
RFC: Rewrite gamelauncher in Python (#8)
- In its current form, executing the gamelauncher script can be tedious especially when not using a modern shell that supports auto completions. For instance:

$ WINEPREFIX=$HOME/Games/epic-games-store GAMEID=egs PROTONPATH=$HOME/.steam/steam/compatibilitytools.d/GE-Proton8-28 ./gamelauncher.sh $HOME/Games/epic-games-store/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe -opengl -SkipBuildPatchPrereq

- By rewriting the gamelauncher script in Python, we can support reading from a configuration file(s) instead which increases ease of use and provides better organization. This effectively results in this:

$ gamelauncher.py --config example.toml

- Additionally, due to the rich Python ecosystem, the rewrite leaves room for future features and formal testing if needed.
2024-02-09 19:21:10 -08:00
GloriousEggroll
a702bab465 fixup incorrect posix ldconfig_output case (credits user: https://github.com/apprehensions) and remove double exit 1 lines 2024-02-08 18:34:33 -07:00
Thomas Crider
1519798946
Merge pull request #17 from loathingKernel/main
Separate self-update and download/extraction into a wrapper script for CLI use
2024-02-08 12:50:57 -07:00
Paweł Lidwin
ff5d7c15b2
avoid dumping useless log file 2024-02-07 17:12:35 +01:00
Stelios Tsampas
8cf3fdaace Workaround for sha512sum file string 2024-02-07 17:49:38 +02:00
Stelios Tsampas
5acf249512 Set toolmanifest to point to the renamed entry point 2024-02-07 17:28:31 +02:00
Stelios Tsampas
c54611c3c2 Move self-updating to a separate wrapper 2024-02-07 17:28:11 +02:00
GloriousEggroll
733c6abc4f oops, forgot to change the version file 2024-02-05 18:27:12 -07:00
GloriousEggroll
1a17aac5a7 bump ulwgl-run and flatpak tarball rc version 2024-02-05 17:02:28 -07:00
GloriousEggroll
a2a4fe6a09 convert ulwgl-run to posix sh, fixes https://github.com/Open-Wine-Components/ULWGL-launcher/pull/12 2024-02-05 16:45:57 -07:00
GloriousEggroll
ee9e6877f5 fix missing fi 2024-02-05 16:15:22 -07:00
GloriousEggroll
cadfd9a617 fixup so that it doesnt fail if no tarball is found 2024-02-05 16:09:25 -07:00
GloriousEggroll
1adbce45ad update launcher tarball shasum one more time 2024-02-05 15:31:59 -07:00
GloriousEggroll
68f580cf62 fix ULWGL-launcher tarball location 2024-02-05 15:21:57 -07:00
GloriousEggroll
24e84e8606 fix flatpak display settings 2024-02-05 14:11:10 -07:00
GloriousEggroll
405c244cd7 bump tarball shasum (again) 2024-02-05 13:00:07 -07:00
GloriousEggroll
042e9580a6 bump flatpak tarball version, fix typo 2024-02-05 12:57:17 -07:00
GloriousEggroll
01fc2f8258 bump rc version, add flatpak yml build file 2024-02-05 12:49:39 -07:00
GloriousEggroll
650136d7d2 change gamelauncher to ulwgl-run, allow it to be in bin/, make default install in ~/.local/share/ulwgl,implement version checking 2024-02-05 10:06:09 -07:00
GloriousEggroll
e68f9eaf5d check if is defined. If it is, make sure the path exists, if it isn't, download and use the latest stable ULWGL proton version 2024-02-04 16:42:20 -07:00
GloriousEggroll
204998cdfc update wip build notes 2024-02-04 10:29:10 -07:00
GloriousEggroll
b6b8cda316 fix readme usage section 2024-02-03 21:19:38 -07:00
GloriousEggroll
211fdc47b7 shaddaaap already (get rid of error spam from trying to create symlinks that may already exist) 2024-02-02 16:10:53 -07:00
GloriousEggroll
cfb7121a38 fix drive_c symlink during prefix creation 2024-01-30 14:01:21 -07:00
Paweł Lidwin
a4a845321a
prevent adding / to LIBRARY_PATHS 2024-01-30 13:27:32 +01:00
Paweł Lidwin
15f267053e
it's actually STEAM_COMPAT_LIBRARY_PATHS, allow caller to specify additional paths too 2024-01-29 19:19:01 +01:00