diff --git a/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml b/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml deleted file mode 100644 index 777fb6b..0000000 --- a/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - com.valvesoftware.Steam.CompatibilityTool.Proton-GE - com.valvesoftware.Steam - Proton-GE (community build) - Latest Proton-GE version built on the Flatpak Freedesktop SDK - https://github.com/GloriousEggroll/proton-ge-custom - BSD-3-Clause and LGPL-2.1 and zlib-acknowledgement and Zlib and OFL-1.1 and MIT and MPL-2.0 and LicenseRef-proprietary - CC0-1.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml b/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml new file mode 120000 index 0000000..c4f9eff --- /dev/null +++ b/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml @@ -0,0 +1 @@ +com.valvesoftware.Steam.CompatibilityTool.Proton.metainfo.xml \ No newline at end of file diff --git a/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.yml b/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.yml deleted file mode 100644 index 70e88a4..0000000 --- a/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.yml +++ /dev/null @@ -1,35 +0,0 @@ -id: com.valvesoftware.Steam.CompatibilityTool.Proton-GE -default-branch: stable -runtime: com.valvesoftware.Steam -runtime-version: stable -sdk: org.freedesktop.Sdk//23.08 -build-extension: true -appstream-compose: false -modules: - - name: proton - buildsystem: simple - sources: - # Proton-GE release archive - - type: file - url: https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton9-10/GE-Proton9-10.tar.gz - sha256: 6cfe3699ba1dd7dcf1c93d6093184bb8af05f554e8c04bdf6bb96ca64fad0f5b - # Patch to remove some lines which is required to get Steam games to launch with Proton-GE - - type: file - path: toolmanifest.patch - # Flatpak metainfo file - - type: file - path: com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml - build-commands: - - | - echo "Extracting GE-Proton9-10.tar.gz to /app/share/steam/compatibilitytools.d/Proton-GE" - tar -xf GE-Proton9-10.tar.gz --strip-components=1 -C /app/share/steam/compatibilitytools.d/Proton-GE - - echo "Patching toolmanifest.vdf" - patch /app/share/steam/compatibilitytools.d/Proton-GE/toolmanifest.vdf toolmanifest.patch - - echo "Patching compatibilitytool.vdf to add (Flatpak) to Proton display name" - sed -i '0,/GE-Proton[^"]*/s//GE-Proton (Flatpak)/' /app/share/steam/compatibilitytools.d/Proton-GE/compatibilitytool.vdf # Replace first occurrence or GE-ProtonVERSION# (internal name) with GE-Proton (Flatpak) - sed -i 's/"display_name" "GE-Proton[^"]*\b/& (Flatpak)/' /app/share/steam/compatibilitytools.d/Proton-GE/compatibilitytool.vdf # Add (Flatpak) to the end of the Proton-GE display name - - install -Dm644 -t ${FLATPAK_DEST}/share/metainfo com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml - appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak ${FLATPAK_ID} diff --git a/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.yml b/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.yml new file mode 120000 index 0000000..e7636b1 --- /dev/null +++ b/com.valvesoftware.Steam.CompatibilityTool.Proton-GE.yml @@ -0,0 +1 @@ +com.valvesoftware.Steam.CompatibilityTool.Proton.yml \ No newline at end of file diff --git a/com.valvesoftware.Steam.CompatibilityTool.Proton.metainfo.xml b/com.valvesoftware.Steam.CompatibilityTool.Proton.metainfo.xml new file mode 100644 index 0000000..777fb6b --- /dev/null +++ b/com.valvesoftware.Steam.CompatibilityTool.Proton.metainfo.xml @@ -0,0 +1,72 @@ + + + com.valvesoftware.Steam.CompatibilityTool.Proton-GE + com.valvesoftware.Steam + Proton-GE (community build) + Latest Proton-GE version built on the Flatpak Freedesktop SDK + https://github.com/GloriousEggroll/proton-ge-custom + BSD-3-Clause and LGPL-2.1 and zlib-acknowledgement and Zlib and OFL-1.1 and MIT and MPL-2.0 and LicenseRef-proprietary + CC0-1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.valvesoftware.Steam.CompatibilityTool.Proton.yml b/com.valvesoftware.Steam.CompatibilityTool.Proton.yml new file mode 100644 index 0000000..d0b7307 --- /dev/null +++ b/com.valvesoftware.Steam.CompatibilityTool.Proton.yml @@ -0,0 +1,31 @@ +id: com.valvesoftware.Steam.CompatibilityTool.Proton-GE +default-branch: stable +runtime: com.valvesoftware.Steam +runtime-version: stable +sdk: org.freedesktop.Sdk//23.08 +build-extension: true +modules: + - name: proton + buildsystem: simple + sources: + # Proton-GE release archive + - type: archive + url: https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton9-10/GE-Proton9-10.tar.gz + sha256: 6cfe3699ba1dd7dcf1c93d6093184bb8af05f554e8c04bdf6bb96ca64fad0f5b + dest: GE-Proton + # Patch to remove some lines which is required to get Steam games to launch with Proton-GE + - type: patch + path: toolmanifest.patch + # Patch to change internal name to GE-Proton (Flatpak) and display name to GE-ProtonVERSION# (Flatpak) + - type: patch + path: compatibilitytool.patch + # Flatpak metainfo file + - type: file + path: com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml + build-commands: + - | + echo "Moving release contents to /app/share/steam/compatibilitytools.d/Proton-GE" + mv GE-Proton/* /app/share/steam/compatibilitytools.d/Proton-GE + + echo "Installing metainfo" + install -Dm644 -t ${FLATPAK_DEST}/share/metainfo com.valvesoftware.Steam.CompatibilityTool.Proton-GE.metainfo.xml diff --git a/compatibilitytool.patch b/compatibilitytool.patch new file mode 100644 index 0000000..1758eb5 --- /dev/null +++ b/compatibilitytool.patch @@ -0,0 +1,22 @@ +diff --git a/GE-Proton/compatibilitytool.vdf b/GE-Proton/compatibilitytool.vdf +index 41e3f33..fc68088 100644 +--- a/GE-Proton/compatibilitytool.vdf ++++ b/GE-Proton/compatibilitytool.vdf +@@ -2,7 +2,7 @@ + { + "compat_tools" + { +- "GE-Proton9-10" // Internal name of this tool ++ "GE-Proton (Flatpak)" // Internal name of this tool + { + // Can register this tool with Steam in two ways: + // +@@ -14,7 +14,7 @@ + "install_path" "." + + // For this template, we're going to substitute the display_name key in here, e.g.: +- "display_name" "GE-Proton9-10" ++ "display_name" "GE-Proton9-10 (Flatpak)" + + "from_oslist" "windows" + "to_oslist" "linux" diff --git a/toolmanifest.patch b/toolmanifest.patch index 4d32e1a..28c84f5 100644 --- a/toolmanifest.patch +++ b/toolmanifest.patch @@ -1,7 +1,7 @@ -diff --git a/toolmanifest.vdf b/toolmanifest.vdf +diff --git a/GE-Proton/toolmanifest.vdf b/GE-Proton/toolmanifest.vdf index beddcbb..b6f3678 100644 ---- a/toolmanifest.vdf -+++ b/toolmanifest.vdf +--- a/GE-Proton/toolmanifest.vdf ++++ b/GE-Proton/toolmanifest.vdf @@ -2,7 +2,4 @@ { "version" "2"