Sunshine/packaging/linux/flatpak/dev.lizardbyte.app.Sunshine.yml

94 lines
3.0 KiB
YAML
Raw Normal View History

2022-08-08 00:26:40 +00:00
---
app-id: "@PROJECT_FQDN@"
runtime: org.freedesktop.Platform
runtime-version: "22.08"
sdk: org.freedesktop.Sdk
2022-11-18 20:44:06 +00:00
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
2023-09-18 22:14:53 +00:00
- org.freedesktop.Sdk.Extension.vala
command: sunshine
separate-locales: false
finish-args:
2022-08-25 02:29:20 +00:00
- --device=all # access all devices
- --env=PULSE_PROP_media.category=Manager # allow sunshine to manage audio sinks
- --env=SUNSHINE_MIGRATE_CONFIG=1 # migrate config files to the new location
2022-08-25 02:29:20 +00:00
- --filesystem=home # need to save files in user's home directory
- --share=ipc # required for X11 shared memory extension
- --share=network # access network
- --socket=pulseaudio # play sounds using pulseaudio
- --socket=wayland # show windows using Wayland
- --socket=fallback-x11 # show windows using X11
2022-08-25 02:29:20 +00:00
- --system-talk-name=org.freedesktop.Avahi # talk to avahi on the system bus
- --talk-name=org.freedesktop.Flatpak # talk to flatpak on the session bus
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
- /lib/*.la
- /lib/*.a
- /share/man
2023-09-18 22:14:53 +00:00
build-options:
append-path: /usr/lib/sdk/vala/bin
prepend-ld-library-path: /usr/lib/sdk/vala/lib
modules:
# Test dependencies
- "modules/xvfb/xvfb.json"
2024-03-24 23:52:24 +00:00
# Runtime dependencies
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- "modules/avahi.json"
- "modules/libevdev.json"
- "modules/libnotify.json"
- "modules/miniupnpc.json"
- "modules/numactl.json" # TODO: is this still needed?
# Caching is configured until here, not including CUDA, since it is too large for GitHub cache
- "modules/cuda.json"
2022-10-17 21:31:12 +00:00
- name: sunshine
2022-10-19 21:29:27 +00:00
disabled: false
buildsystem: cmake-ninja
no-make-install: false
builddir: true
build-options:
2022-11-18 20:44:06 +00:00
append-path: /usr/lib/sdk/node18/bin
build-args:
- --share=network
test-args:
- --share=network
2022-11-18 20:44:06 +00:00
env:
BUILD_VERSION: "@BUILD_VERSION@"
BRANCH: "@GITHUB_BRANCH@"
COMMIT: "@GITHUB_COMMIT@"
2022-11-18 20:44:06 +00:00
npm_config_nodedir: /usr/lib/sdk/node18
NPM_CONFIG_LOGLEVEL: info
config-opts:
- -DBUILD_DOCS=OFF
- -DBUILD_WERROR=ON
- -DCMAKE_BUILD_TYPE=Release
2022-07-05 23:27:14 +00:00
- -DCMAKE_CUDA_COMPILER=/app/cuda/bin/nvcc
- -DSUNSHINE_ASSETS_DIR=share/sunshine
2024-08-25 00:14:45 +00:00
- -DSUNSHINE_BUILD_FLATPAK=ON
- -DSUNSHINE_EXECUTABLE_PATH=/app/bin/sunshine
- -DSUNSHINE_ENABLE_WAYLAND=ON
- -DSUNSHINE_ENABLE_X11=ON
- -DSUNSHINE_ENABLE_DRM=ON
- -DSUNSHINE_ENABLE_CUDA=ON
- -DSUNSHINE_PUBLISHER_NAME='LizardByte'
2024-08-25 00:14:45 +00:00
-DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev'
-DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
sources:
- type: git
2023-01-28 20:21:16 +00:00
url: "@GITHUB_CLONE_URL@"
commit: "@GITHUB_COMMIT@"
post-install:
- install -D $FLATPAK_BUILDER_BUILDDIR/packaging/linux/flatpak/scripts/* /app/bin
- install -D $FLATPAK_BUILDER_BUILDDIR/packaging/linux/flatpak/apps.json /app/share/sunshine/apps.json
2024-03-24 23:52:24 +00:00
run-tests: true
test-rule: "" # empty to disable
test-commands:
- xvfb-run tests/test_sunshine --gtest_color=yes