180 Commits

Author SHA1 Message Date
tcsenpai
88bdf4ce94 basic launcher handy template to be even more lazy 2024-03-28 13:50:08 +01:00
tcsenpai
4b6841a548 added automatic launcher creator 2024-03-28 13:48:51 +01:00
tcsenpai
94c6c979db deforked 2024-02-28 14:44:49 +01:00
tcsenpai
198eea2ef9 Added Wine support 2024-02-28 14:44:31 +01:00
tcsenpai
ac006b900f Also informative support if envfile isnt there 2024-02-25 23:10:40 +01:00
tcsenpai
bf11b1e737 Fixed error in loading default .env if in PATH 2024-02-25 23:08:21 +01:00
tcsenpai
3743179727 Ok 2024-02-25 22:55:28 +01:00
tcsenpai
81e77fda30 Ok 2024-02-25 22:55:01 +01:00
TheCookingSenpai
b893c56734
Update README.md 2024-02-25 21:51:54 +00:00
tcsenpai
e9f23f5d39 Updated documentation 2024-02-25 22:19:51 +01:00
tcsenpai
69a50bf7b7 Merged UWINE into the repo 2024-02-25 22:00:47 +01:00
tcsenpai
4f6f8eeaed moved to launcher 2024-02-25 21:46:15 +01:00
R1kaB3rN
8383765bd8
ulwgl_run: move import for traceback module 2024-02-23 18:29:06 -08:00
R1kaB3rN
b09752c188
ulwgl_run: prefer selectively importing subprocess functionality 2024-02-23 18:28:08 -08:00
R1kaB3rN
e641331b5a
ulwgl_run: prefer selectively importing argparse functionality 2024-02-23 18:27:17 -08:00
R1kaB3rN
aaf76af54b
ulwgl_run: refactor logic for PROTONPATH
- Prioritize checking the Proton version first instead of including the logic as apart of fetching the Proton. This way, we also allow clients to assign other Proton forks such as GE-Proton instead of strictly ULWGL-Proton.
2024-02-23 16:55:54 -08:00
R1kaB3rN
ac684f4262
Merge pull request #39 from R1kaB3rN/debug
Add initial logging functionality
2024-02-22 19:13:26 -08:00
R1kaB3rN
74fc90b346
Add initial logging functionality 2024-02-22 19:12:27 -08:00
R1kaB3rN
b97c9af7c0
Merge pull request #38 from R1kaB3rN/toml-plugin
Make parsing configuration files a plugin
2024-02-21 20:52:02 -08:00
R1kaB3rN
2a1e440d98
workflows: update github action for ubuntu lts
- Since tomllib requires Python 3.11, only run the config tests for 3.11+

- Related to https://github.com/Open-Wine-Components/ULWGL-launcher/issues/37
2024-02-21 20:48:30 -08:00
R1kaB3rN
d80411953b
Create separate tests for plugins 2024-02-21 20:46:37 -08:00
R1kaB3rN
b45826f158
Make reading config a plugin 2024-02-21 20:44:45 -08:00
R1kaB3rN
3d5119c66e
ulwgl_test: refactor filepaths in tests
- Try to prefer using .joinpath when joining segments
2024-02-21 18:50:42 -08:00
R1kaB3rN
a78ea7a12b
ulwgl_test: update test for PROTONPATH not set
- Remove the unnecessary statements and just simply assert the error in this case
2024-02-21 18:34:58 -08:00
GloriousEggroll
0bbd251248 update sniper runtime 2024-02-21 19:13:29 -07:00
R1kaB3rN
6469e62b46
ulwgl_test: update test for non-existent WINEPREFIX
- When the user sets a path to WINEPREFIX that doesn't exists, we should always create the directories and set the environment variable on their behalf.

- Related to 39b48b4c2c
2024-02-21 18:11:21 -08:00
R1kaB3rN
15b78b59c6
ulwgl_run: update format 2024-02-21 11:11:18 -08:00
R1kaB3rN
11bd213088
ulwgl_run: update logic for non-existent WINEPREFIX
- Prefer having two separate branches for when the prefix doesn't exist or in the case it's not set
2024-02-21 11:11:01 -08:00
GloriousEggroll
a610be41d8 fix issue where defined but non-existent WINEPREFIX was ignored and therefore not created 2024-02-20 15:24:36 -07:00
Thomas Crider
429de35ee3
Merge pull request #36 from R1kaB3rN/username
Update tests for usernames with digits
2024-02-20 10:48:49 -07:00
Thomas Crider
65a9d88d9f
Merge pull request #25 from loathingKernel/insteam
Add files required for compatibility with Steam
2024-02-20 10:43:30 -07:00
Thomas Crider
39b48b4c2c
Merge branch 'main' into insteam 2024-02-20 10:43:22 -07:00
Thomas Crider
8ed1f0f5d6
Merge pull request #32 from R1kaB3rN/wineprefix
Remove requirement for setting WINEPREFIX
2024-02-20 10:39:48 -07:00
R1kaB3rN
eea700e75b
ulwgl_test: account for usernames with digits 2024-02-20 07:34:17 -08:00
R1kaB3rN
7c48acbb9a
ulwgl_run: update usage 2024-02-19 18:06:38 -08:00
R1kaB3rN
f6ba346f1c
ulwgl_run: update format 2024-02-19 17:51:55 -08:00
R1kaB3rN
4baebf2e17
Remove requirement for setting WINEPREFIX
- When $WINEPREFIX is not set, create a prefix directory in behalf of the user with the name being the ulwgl id. Currently, we create the directories as ~/Games/ULWGL/<ULWGL_ID>. In effect, the only required environment variable will be $GAMEID.
2024-02-19 17:51:38 -08:00
Stelios Tsampas
681191115a Update compatibilitytool.vdf and toolmanifest.vdf
* Remove ulwgl.vdf and create symlink to `.local/share/ULWGL`
2024-02-20 02:09:16 +02:00
Stelios Tsampas
23b6e3b1a4 Move steam compat files to ULWGL-Runner 2024-02-20 01:58:27 +02:00
Stelios Tsampas
2b3f81a04d Change compatmanager_layer_name to something specific to ULWGL 2024-02-20 00:24:28 +02:00
Stelios Tsampas
bfebd77f24 Add the required files for Steam discovery
There are two files describing the compatibility tool,

* `compatibilitytool.vdf`, useful if ULWGL is installed under
`.local/share/Steam/compatibilitytools.d`

* `ulwgl.vdf`, can be installed in `.local/share/Steam/compatibilitytools.d`
and allows Steam to use ULWGL from the `.local/share/ULWGL` path
2024-02-20 00:24:22 +02:00
Stelios Tsampas
b24ef40afa Support a Steam verb as the first argument
To retain Steam's calling convention, check if the first argument is a
known verb. If it is and `PROTON_VERB` is unset, assign it to `PROTON_VERB`
and remove it from the arguments list.

This is a bit hacky but works as PoC
2024-02-20 00:08:10 +02:00
GloriousEggroll
33bd82851a allow using shortname of proton version as alternative to full file path 2024-02-19 14:30:20 -07:00
R1kaB3rN
c116d7dbf9
Merge pull request #31 from loathingKernel/stderr
Do not silence subprocess's exit code and avoid polluting `stdout`
2024-02-19 12:30:48 -08:00
Stelios Tsampas
ffd22ca1a1 ulwg_run.py: print to stderr only
* Avoid polluting `stdout` since the caller might expect the output of
the command there.
2024-02-19 22:25:41 +02:00
Stelios Tsampas
709e0bd67a ulwlg_run.py: Capture and return the exit code of the subprocess
* Return the exitcode of the subprocess from `main` in case the caller
wants to do something this it.

* Catch any exceptions during execution and return an error exitcode.
2024-02-19 22:25:37 +02:00
R1kaB3rN
a7c38855bc
ulwgl_dl_util: fix bug for print statements
Co-authored-by: Stelios Tsampas <loathingkernel@gmail.com>
2024-02-19 10:26:26 -08:00
R1kaB3rN
6fdf4f3c3d
Revert "ulwgl_dl_util: fix bug for print statements"
This reverts commit 5a28836a8cb461b95be6264acbc8135f0f9645b6.
2024-02-19 10:23:44 -08:00
R1kaB3rN
5a28836a8c
ulwgl_dl_util: fix bug for print statements
Co-authored-by: Stelios Tsampas <loathingkernel@gmail.com>

- Do not print to stdout when finding or downloading Proton as it is not intended to be processed directly as input for other applications.

- Related to https://github.com/Open-Wine-Components/ULWGL-launcher/pull/31#issue-2142440694
2024-02-19 10:20:23 -08:00
R1kaB3rN
9a3c07d792
ulwgl_run: prefer using .joinpath for path segments
Co-authored-by: Stelios Tsampas <loathingkernel@gmail.com>
2024-02-18 10:40:44 -08:00