-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update runtime directory structure (#400)
* umu_consts: add enum for global flocks * umu: update flocks to use enum * __init__: update runtime metadata * umu_run: add support for solving correct runtime * umu_runtime: refactor to reference container runtime subdir * umu: update tests to handle parameter change * umu_test: update tests to handle new parameter * umu_runtime: refactor to not refer to constant * umu_test: update tests * tests: add e2e test for using obsolete protons * tests: fix unused tmp * umu_runtime: refactor to not refer to constant * umu_runtime: require a path for umu-shim - We don't want any files besides our locks to be within the top-level * umu_test: remove test for default shim path * umu_runtime: fix unused constant * tests: update test_update.sh * tests: set RUNTIMEPATH explicitly when using steamrt3-based protons * umu_run: resolve RUNTIMEPATH when configuring environment * Revert "umu_run: resolve RUNTIMEPATH when configuring environment" This reverts commit d9b98a8. * umu_run: update STEAM_COMPAT_TOOL_PATHS * umu_run: create all segments up to the runtime subdir * umu_run: set RUNTIMEPATH * umu: set RUNTIMEPATH for environment tests * umu_test: fix assertions for STEAM_COMPAT_TOOL_PATHS * umu_run: update function parameters * umu_test: fix creation of umu.lock * umu_run: fix unused import
- Loading branch information
Showing
13 changed files
with
236 additions
and
118 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
mkdir -p "$HOME/.local/share/Steam/compatibilitytools.d" | ||
curl -LJO "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton7-55/GE-Proton7-55.tar.gz" | ||
tar xaf GE-Proton7-55.tar.gz | ||
mv GE-Proton7-55 "$HOME/.local/share/Steam/compatibilitytools.d" | ||
|
||
UMU_LOG=debug PROTONPATH=GE-Proton7-55 "$HOME/.local/bin/umu-run" wineboot -u |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/usr/bin/env sh | ||
|
||
mkdir -p "$HOME/.local/share/umu" | ||
mkdir -p "$HOME/.local/share/umu/steamrt3" | ||
|
||
curl -LJO "https://repo.steampowered.com/steamrt3/images/0.20240916.101795/SteamLinuxRuntime_sniper.tar.xz" | ||
tar xaf SteamLinuxRuntime_sniper.tar.xz | ||
mv SteamLinuxRuntime_sniper/* "$HOME/.local/share/umu" | ||
mv "$HOME/.local/share/umu/_v2-entry-point" "$HOME/.local/share/umu/umu" | ||
echo "$@" > "$HOME/.local/share/umu/umu-shim" && chmod 700 "$HOME/.local/share/umu/umu-shim" | ||
mv SteamLinuxRuntime_sniper/* "$HOME/.local/share/umu/steamrt3" | ||
mv "$HOME/.local/share/umu/steamrt3/_v2-entry-point" "$HOME/.local/share/umu/steamrt3/umu" | ||
echo "$@" > "$HOME/.local/share/umu/steamrt3/umu-shim" && chmod 700 "$HOME/.local/share/umu/steamrt3/umu-shim" | ||
|
||
# Perform a preflight step, where we ensure everything is in order and create '$HOME/.local/share/umu/var' | ||
# Afterwards, run a 2nd time to perform the runtime update and ensure '$HOME/.local/share/umu/var' is removed | ||
UMU_LOG=debug GAMEID=umu-0 UMU_RUNTIME_UPDATE=0 "$HOME/.local/bin/umu-run" wineboot -u && UMU_LOG=debug GAMEID=umu-0 "$HOME/.local/bin/umu-run" wineboot -u | ||
UMU_LOG=debug GAMEID=umu-0 UMU_RUNTIME_UPDATE=0 "$HOME/.local/bin/umu-run" wineboot -u && RUNTIMEPATH=steamrt3 UMU_LOG=debug GAMEID=umu-0 "$HOME/.local/bin/umu-run" wineboot -u |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
__version__ = "1.2.5" # noqa: D104 | ||
__runtime_versions__ = (("sniper", "steamrt3"), ("soldier", "steamrt2")) | ||
__runtime_versions__ = ( | ||
("sniper", "steamrt3", "1628350"), | ||
("soldier", "steamrt2", "1391110"), | ||
) | ||
__runtime_version__ = __runtime_versions__[0] |
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
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
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
Oops, something went wrong.