Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Flatpak manifest #4110

Merged
merged 5 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Heroic is built with Web Technologies:
## Planned features

- Support Other Store (IndieGala, etc)
- Play GOG games online

## Supported Operating Systems

Expand Down
12 changes: 0 additions & 12 deletions flatpak/patches/aria2/working-build.patch

This file was deleted.

26 changes: 0 additions & 26 deletions flatpak/patches/p7zip/gcc10-conversion.patch

This file was deleted.

1 change: 0 additions & 1 deletion flatpak/prepareFlatpak.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ async function main() {
fs.copyFileSync("./flatpak/com.heroicgameslauncher.hgl.desktop", "./flatpak-build/com.heroicgameslauncher.hgl.desktop")
fs.copyFileSync("./flatpak/com.heroicgameslauncher.hgl.png", "./flatpak-build/com.heroicgameslauncher.hgl.png")
fs.copyFileSync("./flatpak/flathub.json", "./flatpak-build/flathub.json")
fs.cpSync("./flatpak/patches", "./flatpak-build/patches", { recursive: true })
}
86 changes: 53 additions & 33 deletions flatpak/templates/com.heroicgameslauncher.hgl.yml.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
id: com.heroicgameslauncher.hgl
sdk: org.freedesktop.Sdk
runtime: org.freedesktop.Platform
runtime-version: '22.08'
runtime-version: '24.08'
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
base-version: '24.08'
command: heroic-run
separate-locales: false

Expand All @@ -18,50 +18,58 @@ sdk-extensions:
finish-args:
- --allow=devel
- --allow=multiarch
# pressure vessel
- --allow=per-app-dev-shm
- --device=all
- --env=PATH=/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/MangoHud/bin:/usr/lib/extensions/vulkan/gamescope/bin:/usr/lib/extensions/vulkan/OBSVkCapture/bin:/app/bin/heroic/resources/app.asar.unpacked/build/bin/linux
- --filesystem=xdg-data/lutris:rw
- --filesystem=xdg-data/Steam:rw
- --filesystem=xdg-data/applications:rw
- --env=LD_LIBRARY_PATH=/usr/lib/extensions/vulkan/gamescope/lib
- --filesystem=~/.local/share/lutris:rw
- --filesystem=~/.steam/steam:rw
- --filesystem=~/.local/share/applications:rw
- --filesystem=~/.steam:rw
- --filesystem=~/Games/Heroic:create
- --filesystem=~/.var/app/com.valvesoftware.Steam:rw
- --filesystem=xdg-documents
- --filesystem=xdg-desktop
- --filesystem=xdg-run/gamescope-0:rw
# should fix access to SD card on the deck
- --filesystem=/run/media
# There are still quite a few users using /mnt/ for external drives
# There are still quite a few users using /mnt/ and /media/ for external drives
- --filesystem=/mnt
- --filesystem=/media
# should fix steamdeck controler navigation
- --filesystem=/run/udev:ro
# should fix discord rich presence
- --filesystem=xdg-run/app/com.discordapp.Discord:create
# umu
- --filesystem=xdg-data/umu:create
- --persist=.
- --share=ipc
- --share=network
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
# umu
- --filesystem=~/.var/app/org.openwinecomponents.umu.umu-launcher/data/umu
- --talk-name=com.canonical.Unity
- --talk-name=org.freedesktop.ScreenSaver
# wine uses this for disk drives (mountmgr.sys)
- --system-talk-name=org.freedesktop.UDisks2
- --env=XDG_DATA_DIRS=/app/share:/usr/lib/extensions/vulkan/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share:/usr/lib/pressure-vessel/overrides/share

add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: '22.08'
version: '24.08'

org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: '22.08'
version: '24.08'
no-autodownload: true

org.freedesktop.Platform.GL32:
directory: lib/i386-linux-gnu/GL
version: '1.4'
versions: 22.08;1.4
versions: 24.08;1.4
subdirectories: true
no-autodownload: true
autodelete: false
Expand All @@ -81,8 +89,8 @@ add-extensions:

org.freedesktop.Platform.VAAPI.Intel.i386:
directory: lib/i386-linux-gnu/dri/intel-vaapi-driver
version: '22.08'
versions: '22.08'
version: '24.08'
versions: '24.08'
autodelete: false
no-autodownload: true
add-ld-path: lib
Expand All @@ -108,9 +116,25 @@ modules:
- -DVULKAN_HEADERS_INSTALL_DIR=/app
- -DCMAKE_BUILD_TYPE=Release
sources:
- type: git
url: https://github.com/KhronosGroup/Vulkan-Tools.git
tag: sdk-1.3.224.1
- type: archive
url: https://github.com/KhronosGroup/Vulkan-Tools/archive/v1.3.297/Vulkan-Tools-1.3.297.tar.gz
sha256: 95bffa39d90f3ec81d8e3a0fa6c846ac1a10442152cc0b6d0d6567ce48932f89
modules:
- name: volk
buildsystem: cmake-ninja
config-opts:
- -DVOLK_INSTALL=ON
sources:
- type: archive
url: https://github.com/zeux/volk/archive/vulkan-sdk-1.3.296.0.tar.gz
sha256: 8ffd0e81e29688f4abaa39e598937160b098228f37503903b10d481d4862ab85
modules:
- name: vulkan-headers
buildsystem: cmake-ninja
sources:
- type: archive
url: https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.3.297/Vulkan-Headers-v1.3.297.tar.gz
sha256: 1d679e2edc43cb7ad818b81dea960e374f1d6dd082325eb9b4c6113e76263c02

- name: gamemode
buildsystem: meson
Expand All @@ -121,8 +145,8 @@ modules:
sources: &gamemode_sources
- type: git
url: https://github.com/FeralInteractive/gamemode.git
tag: '1.7'
commit: 4dc99dff76218718763a6b07fc1900fa6d1dafd9
tag: 1.8.2
commit: c54d6d4243b0dd0afcb49f2c9836d432da171a2b
x-checker-data:
type: git

Expand Down Expand Up @@ -150,8 +174,8 @@ modules:
- --disable-md2man
sources:
- type: archive
url: https://download.samba.org/pub/rsync/src/rsync-3.2.7.tar.gz
sha256: 4e7d9d3f6ed10878c58c5fb724a67dacf4b6aac7340b13e488fb2dc41346f2bb
url: https://download.samba.org/pub/rsync/src/rsync-3.3.0.tar.gz
sha256: 7399e9a6708c32d678a72a63219e96f23be0be2336e50fd1348498d07041df90
x-checker-data:
type: anitya
project-id: 4217
Expand All @@ -166,6 +190,7 @@ modules:
- ./Heroic-*.AppImage --appimage-extract
- mv squashfs-root /app/bin/heroic
- install -D heroic-run -t /app/bin
- patch-desktop-filename ${FLATPAK_DEST}/bin/heroic/resources/app.asar
sources:
- type: script
dest-filename: heroic-run
Expand Down Expand Up @@ -225,11 +250,8 @@ modules:
- DEST_MAN=$(FLATPAK_DEST)/share/man
sources:
- type: archive
url: https://downloads.sourceforge.net/p7zip/p7zip_16.02_src_all.tar.bz2
sha256: 5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
- type: patch
paths:
- patches/p7zip/gcc10-conversion.patch
url: https://github.com/p7zip-project/p7zip/archive/refs/tags/v17.05.tar.gz
sha256: d2788f892571058c08d27095c22154579dfefb807ebe357d145ab2ddddefb1a6
- type: shell
only-arches:
- x86_64
Expand Down Expand Up @@ -270,8 +292,8 @@ modules:
- DESTDIR=$(FLATPAK_DEST)
sources:
- type: archive
url: https://www.rarlab.com/rar/unrarsrc-6.2.10.tar.gz
sha256: 55fe6ebd5e48d6655bfda3fd19b55438ca05e13c7e69772420caad9fdb68ef42
url: https://www.rarlab.com/rar/unrarsrc-6.2.12.tar.gz
sha256: a008b5f949bca9bb4ffa1bebbfc8b3c14b89df10a10354809b845232d5f582e5
x-checker-data:
type: anitya
project-id: 13306
Expand All @@ -292,10 +314,8 @@ modules:
- --without-sqlite3
sources:
- type: archive
sha256: 58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5
url: https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.xz
- type: patch
path: patches/aria2/working-build.patch
sha256: 60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b
url: https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz

- name: libcaca
config-opts: &libcaca_config_opts
Expand Down Expand Up @@ -349,4 +369,4 @@ modules:
- -DENABLE_STATIC:BOOL=NO
- -DWITH_JPEG8:BOOL=YES
sources: *libjpeg_sources
#END --- Winetricks Deps --
#END --- Winetricks Deps ---
Loading