68 lines
2.4 KiB
YAML
68 lines
2.4 KiB
YAML
app-id: com.r2modman.r2modmanPlus
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: &runtime-version "24.08"
|
|
sdk: org.freedesktop.Sdk
|
|
base: org.electronjs.Electron2.BaseApp
|
|
base-version: *runtime-version
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.node20
|
|
command: run.sh
|
|
finish-args:
|
|
- --share=ipc
|
|
- --device=dri
|
|
- --socket=x11
|
|
- --socket=pulseaudio
|
|
- --socket=system-bus
|
|
- --share=network
|
|
- --talk-name=org.freedesktop.Flatpak
|
|
- --env=ELECTRON_TRASH=gio
|
|
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
|
|
- --filesystem=~/.local/share/Steam
|
|
- --filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam
|
|
modules:
|
|
- name: r2modman
|
|
buildsystem: simple
|
|
build-options:
|
|
append-path: /usr/lib/sdk/node20/bin
|
|
cflags: -O2 -g
|
|
cxxflags: -O2 -g
|
|
env:
|
|
NPM_CONFIG_NODEDIR: /usr/lib/sdk/node20
|
|
XDG_CACHE_HOME: /run/build/r2modman/flatpak-node/cache
|
|
build-commands:
|
|
- HOME=$PWD yarn config --offline set yarn-offline-mirror $FLATPAK_BUILDER_BUILDDIR/flatpak-node/yarn-mirror
|
|
- yarn install --offline
|
|
- "echo '--install.offline true' > .yarnrc"
|
|
- . ../flatpak-node/electron-builder-arch-args.sh; yarn run --offline build-linux
|
|
- cp -a dist/electron/Packaged/linux-unpacked/ /app/main
|
|
- |
|
|
for file in src/assets/icon/*.png;
|
|
do
|
|
install -Dm644 $file ${FLATPAK_DEST}/share/icons/hicolor/$(basename "$file" | cut -d '.' -f 1)/apps/${FLATPAK_ID}.png;
|
|
done
|
|
- install -Dm644 ../com.r2modman.r2modmanPlus.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
|
|
- install -Dm644 ../com.r2modman.r2modmanPlus.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
|
- install -Dm755 ../run.sh /app/bin/
|
|
subdir: main
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/ebkr/r2modmanPlus.git
|
|
tag: release-3.2.2
|
|
commit: cb93751fae7fc321c0bfc518a40d9f897b7d301a
|
|
dest: main
|
|
- type: patch
|
|
paths:
|
|
- patches/build-linux.patch
|
|
- patches/SteamGameRunner_Linux.patch
|
|
options:
|
|
- -d
|
|
- main
|
|
- type: file
|
|
path: com.r2modman.r2modmanPlus.desktop
|
|
- type: file
|
|
path: com.r2modman.r2modmanPlus.metainfo.xml
|
|
- generated-sources.json
|
|
- type: script
|
|
dest-filename: run.sh
|
|
commands:
|
|
- zypak-wrapper /app/main/r2modman "$@"
|