Skip to content
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
3 changes: 1 addition & 2 deletions flatpak/io.github.ebkr.r2modman
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

if [ -n "$WAYLAND_DISPLAY" ]; then
exec zypak-wrapper /app/r2modman \
--no-sandbox \
--enable-features=UseOzonePlatform \
--ozone-platform=wayland \
"$@"
else
exec zypak-wrapper /app/r2modman --no-sandbox "$@"
exec zypak-wrapper /app/r2modman "$@"
fi
10 changes: 5 additions & 5 deletions flatpak/io.github.ebkr.r2modman.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@

<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/develop/docs/images/gameselection.png</image>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/refs/tags/v3.2.16/docs/images/gameselection.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/develop/docs/images/installedmodview.png</image>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/refs/tags/v3.2.16/docs/images/installedmodview.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/develop/docs/images/downloadablemods.png</image>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/refs/tags/v3.2.16/docs/images/downloadablemods.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/develop/docs/images/configeditor.png</image>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/refs/tags/v3.2.16/docs/images/configeditor.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/develop/docs/images/profiles.png</image>
<image>https://raw.githubusercontent.com/ebkr/r2modmanPlus/refs/tags/v3.2.16/docs/images/profiles.png</image>
</screenshot>
</screenshots>
</component>
52 changes: 21 additions & 31 deletions flatpak/io.github.ebkr.r2modman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ base: org.electronjs.Electron2.BaseApp
base-version: "25.08"
command: io.github.ebkr.r2modman

finish-args:
# Graphics
- --socket=wayland
- --socket=fallback-x11
- --device=dri

# Flatpak spawn for steam deck
- --talk-name=org.freedesktop.Flatpak

# Network access
- --share=network
- --share=ipc

# File system to find Steam and games
- --filesystem=host
- --filesystem=~/.var/app/com.valvesoftware.Steam:rw
# - --filesystem=~/.local/share/Steam:rw

modules:
- name: r2modmanPlus
buildsystem: simple
Expand All @@ -33,15 +51,6 @@ modules:

- generated-sources.json

- type: file
path: io.github.ebkr.r2modman.desktop

- type: file
path: io.github.ebkr.r2modman.metainfo.xml

- type: file
path: io.github.ebkr.r2modman

- type: file
url: https://repo.yarnpkg.com/4.11.0/packages/yarnpkg-cli/bin/yarn.js
dest-filename: yarn.cjs
Expand All @@ -53,7 +62,6 @@ modules:
- >-
echo "yarnPath: yarn.cjs" >> .yarnrc.yml
- yarn plugin import $FLATPAK_BUILDER_BUILDDIR/flatpak-node/flatpak-yarn.js

# prepare yarn cache
- yarn convertToZip $(which yarn)

Expand All @@ -65,24 +73,6 @@ modules:
- install -Dm644 src/assets/icon/128x128.png /app/share/icons/hicolor/128x128/apps/io.github.ebkr.r2modman.png
- install -Dm644 src/assets/icon/256x256.png /app/share/icons/hicolor/256x256/apps/io.github.ebkr.r2modman.png

- install -Dm644 io.github.ebkr.r2modman.desktop /app/share/applications/io.github.ebkr.r2modman.desktop
- install -Dm644 io.github.ebkr.r2modman.metainfo.xml /app/share/metainfo/io.github.ebkr.r2modman.metainfo.xml
- install -Dm755 io.github.ebkr.r2modman /app/bin/io.github.ebkr.r2modman

finish-args:
# Graphics
- --socket=wayland
- --socket=fallback-x11
- --device=dri

# Flatpak spawn for steam deck
- --talk-name=org.freedesktop.Flatpak

# Network access
- --share=network
- --share=ipc

# File system to find Steam and games
- --filesystem=host
# - --filesystem=~/.var/app/com.valvesoftware.Steam:rw
# - --filesystem=~/.local/share/Steam:rw
- install -Dm644 flatpak/io.github.ebkr.r2modman.desktop /app/share/applications/io.github.ebkr.r2modman.desktop
- install -Dm644 flatpak/io.github.ebkr.r2modman.metainfo.xml /app/share/metainfo/io.github.ebkr.r2modman.metainfo.xml
- install -Dm755 flatpak/io.github.ebkr.r2modman /app/bin/io.github.ebkr.r2modman