2022-08-07 20:26:40 -04:00
|
|
|
---
|
2024-07-07 10:19:11 -04:00
|
|
|
app-id: "@PROJECT_FQDN@"
|
2022-06-15 21:50:02 -04:00
|
|
|
runtime: org.freedesktop.Platform
|
2024-10-04 21:47:04 -04:00
|
|
|
runtime-version: "23.08" # requires CUDA >= 12.2
|
2022-06-15 21:50:02 -04:00
|
|
|
sdk: org.freedesktop.Sdk
|
2022-11-18 15:44:06 -05:00
|
|
|
sdk-extensions:
|
2024-10-04 21:47:04 -04:00
|
|
|
- org.freedesktop.Sdk.Extension.node20
|
2022-06-15 21:50:02 -04:00
|
|
|
command: sunshine
|
|
|
|
|
separate-locales: false
|
|
|
|
|
finish-args:
|
2022-08-24 22:29:20 -04:00
|
|
|
- --device=all # access all devices
|
|
|
|
|
- --env=PULSE_PROP_media.category=Manager # allow sunshine to manage audio sinks
|
2024-03-10 22:03:20 -04:00
|
|
|
- --env=SUNSHINE_MIGRATE_CONFIG=1 # migrate config files to the new location
|
2022-08-24 22:29:20 -04: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
|
2024-07-07 10:19:11 -04:00
|
|
|
- --socket=fallback-x11 # show windows using X11
|
2022-08-24 22:29:20 -04: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
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
|
cleanup:
|
|
|
|
|
- /include
|
|
|
|
|
- /lib/cmake
|
|
|
|
|
- /lib/pkgconfig
|
|
|
|
|
- /lib/*.la
|
|
|
|
|
- /lib/*.a
|
2022-08-23 20:08:14 -04:00
|
|
|
- /share/man
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
|
modules:
|
2024-07-14 19:01:59 -04:00
|
|
|
# Test dependencies
|
2024-07-02 18:42:21 -04:00
|
|
|
- "modules/xvfb/xvfb.json"
|
2024-03-24 19:52:24 -04:00
|
|
|
|
2024-12-11 21:17:44 +02:00
|
|
|
# Build dependencies
|
|
|
|
|
- "modules/nlohmann_json.json"
|
|
|
|
|
|
2024-07-14 19:01:59 -04:00
|
|
|
# Runtime dependencies
|
2024-10-12 11:35:25 -04:00
|
|
|
- shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json
|
2024-07-14 19:01:59 -04:00
|
|
|
- "modules/avahi.json"
|
2024-10-04 21:47:04 -04:00
|
|
|
- "modules/boost.json"
|
2024-07-14 19:01:59 -04:00
|
|
|
- "modules/libevdev.json"
|
|
|
|
|
- "modules/libnotify.json"
|
|
|
|
|
- "modules/miniupnpc.json"
|
2024-10-12 11:35:25 -04:00
|
|
|
- "modules/numactl.json"
|
2023-01-15 09:31:37 -05:00
|
|
|
|
2024-07-14 19:01:59 -04:00
|
|
|
# Caching is configured until here, not including CUDA, since it is too large for GitHub cache
|
|
|
|
|
- "modules/cuda.json"
|
2022-10-17 17:31:12 -04:00
|
|
|
|
2022-06-15 21:50:02 -04:00
|
|
|
- name: sunshine
|
2022-06-17 16:30:59 -04:00
|
|
|
builddir: true
|
2022-06-15 21:50:02 -04:00
|
|
|
build-options:
|
2024-10-04 21:47:04 -04:00
|
|
|
append-path: /usr/lib/sdk/node20/bin
|
2022-11-18 15:44:06 -05:00
|
|
|
env:
|
2024-04-18 15:35:49 -04:00
|
|
|
BUILD_VERSION: "@BUILD_VERSION@"
|
|
|
|
|
BRANCH: "@GITHUB_BRANCH@"
|
|
|
|
|
COMMIT: "@GITHUB_COMMIT@"
|
2024-10-04 21:47:04 -04:00
|
|
|
XDG_CACHE_HOME: /run/build/sunshine/flatpak-node/cache
|
|
|
|
|
npm_config_cache: /run/build/sunshine/flatpak-node/npm-cache
|
|
|
|
|
npm_config_nodedir: /usr/lib/sdk/node20
|
|
|
|
|
npm_config_offline: 'true'
|
2022-11-18 15:44:06 -05:00
|
|
|
NPM_CONFIG_LOGLEVEL: info
|
2024-10-04 21:47:04 -04:00
|
|
|
buildsystem: cmake-ninja
|
2022-06-15 21:50:02 -04:00
|
|
|
config-opts:
|
2024-10-04 21:47:04 -04:00
|
|
|
- -DBOOST_USE_STATIC=OFF
|
2024-06-24 12:12:31 -04:00
|
|
|
- -DBUILD_DOCS=OFF
|
2024-02-24 22:34:53 -05:00
|
|
|
- -DBUILD_WERROR=ON
|
2022-06-15 21:50:02 -04:00
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
2022-07-05 19:27:14 -04:00
|
|
|
- -DCMAKE_CUDA_COMPILER=/app/cuda/bin/nvcc
|
2022-08-12 19:26:17 -04:00
|
|
|
- -DSUNSHINE_ASSETS_DIR=share/sunshine
|
2024-08-24 20:14:45 -04:00
|
|
|
- -DSUNSHINE_BUILD_FLATPAK=ON
|
2022-06-15 21:50:02 -04:00
|
|
|
- -DSUNSHINE_EXECUTABLE_PATH=/app/bin/sunshine
|
|
|
|
|
- -DSUNSHINE_ENABLE_WAYLAND=ON
|
|
|
|
|
- -DSUNSHINE_ENABLE_X11=ON
|
|
|
|
|
- -DSUNSHINE_ENABLE_DRM=ON
|
|
|
|
|
- -DSUNSHINE_ENABLE_CUDA=ON
|
2024-09-09 19:44:46 -04:00
|
|
|
- -DSUNSHINE_PUBLISHER_NAME='LizardByte'
|
2024-10-04 21:47:04 -04:00
|
|
|
- -DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev'
|
|
|
|
|
- -DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
|
|
|
|
|
no-make-install: false
|
2022-10-26 14:53:27 -04:00
|
|
|
post-install:
|
2022-11-18 19:52:58 -04:00
|
|
|
- install -D $FLATPAK_BUILDER_BUILDDIR/packaging/linux/flatpak/scripts/* /app/bin
|
2024-07-07 10:19:11 -04:00
|
|
|
- install -D $FLATPAK_BUILDER_BUILDDIR/packaging/linux/flatpak/apps.json /app/share/sunshine/apps.json
|
2024-03-24 19:52:24 -04:00
|
|
|
run-tests: true
|
|
|
|
|
test-rule: "" # empty to disable
|
|
|
|
|
test-commands:
|
2024-10-04 21:47:04 -04:00
|
|
|
- npm run serve & xvfb-run tests/test_sunshine --gtest_color=yes
|
|
|
|
|
sources:
|
|
|
|
|
- generated-sources.json
|
|
|
|
|
- type: git
|
|
|
|
|
url: "@GITHUB_CLONE_URL@"
|
|
|
|
|
commit: "@GITHUB_COMMIT@"
|
|
|
|
|
- type: file
|
|
|
|
|
path: package-lock.json
|