fix assets directory for flatpak and AUR
This commit is contained in:
@@ -217,7 +217,7 @@ jobs:
|
|||||||
cmake -DGITHUB_CLONE_URL=${clone_url} \
|
cmake -DGITHUB_CLONE_URL=${clone_url} \
|
||||||
-DGITHUB_BRANCH=${branch} \
|
-DGITHUB_BRANCH=${branch} \
|
||||||
-DGITHUB_COMMIT=${commit} \
|
-DGITHUB_COMMIT=${commit} \
|
||||||
-DSUNSHINE_CONFIGURE_FLATPAK=ON \
|
-DSUNSHINE_CONFIGURE_FLATPAK_MAN=ON \
|
||||||
-DSUNSHINE_CONFIGURE_ONLY=ON \
|
-DSUNSHINE_CONFIGURE_ONLY=ON \
|
||||||
..
|
..
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -9,9 +9,10 @@ set(PROJECT_LONG_DESCRIPTION "Sunshine is a self hosted, low latency, cloud gami
|
|||||||
Intel, and Nvidia GPUs. It is an open source implementation of NVIDIA's GameStream, as used by the NVIDIA Shield. \
|
Intel, and Nvidia GPUs. It is an open source implementation of NVIDIA's GameStream, as used by the NVIDIA Shield. \
|
||||||
Connect to Sunshine from any Moonlight client, available for nearly any device imaginable.")
|
Connect to Sunshine from any Moonlight client, available for nearly any device imaginable.")
|
||||||
|
|
||||||
option(SUNSHINE_CONFIGURE_APPIMAGE "Configure files required for AppImage." OFF)
|
option(SUNSHINE_CONFIGURE_APPIMAGE "Configuration specific for AppImage." OFF)
|
||||||
option(SUNSHINE_CONFIGURE_AUR "Configure files required for AUR." OFF)
|
option(SUNSHINE_CONFIGURE_AUR "Configure files required for AUR." OFF)
|
||||||
option(SUNSHINE_CONFIGURE_FLATPAK "Configure files required for Flatpak." OFF)
|
option(SUNSHINE_CONFIGURE_FLATPAK_MAN "Configure manifest file required for Flatpak build." OFF)
|
||||||
|
option(SUNSHINE_CONFIGURE_FLATPAK "Configuration specific for Flatpak." OFF)
|
||||||
option(SUNSHINE_CONFIGURE_PORTFILE "Configure macOS Portfile." OFF)
|
option(SUNSHINE_CONFIGURE_PORTFILE "Configure macOS Portfile." OFF)
|
||||||
option(SUNSHINE_CONFIGURE_ONLY "Configure special files only, then exit." OFF)
|
option(SUNSHINE_CONFIGURE_ONLY "Configure special files only, then exit." OFF)
|
||||||
|
|
||||||
@@ -19,7 +20,7 @@ if(${SUNSHINE_CONFIGURE_APPIMAGE})
|
|||||||
configure_file(packaging/linux/sunshine.desktop sunshine.desktop @ONLY)
|
configure_file(packaging/linux/sunshine.desktop sunshine.desktop @ONLY)
|
||||||
elseif(${SUNSHINE_CONFIGURE_AUR})
|
elseif(${SUNSHINE_CONFIGURE_AUR})
|
||||||
configure_file(packaging/linux/aur/PKGBUILD PKGBUILD @ONLY)
|
configure_file(packaging/linux/aur/PKGBUILD PKGBUILD @ONLY)
|
||||||
elseif(${SUNSHINE_CONFIGURE_FLATPAK})
|
elseif(${SUNSHINE_CONFIGURE_FLATPAK_MAN})
|
||||||
configure_file(packaging/linux/flatpak/dev.lizardbyte.sunshine.yml dev.lizardbyte.sunshine.yml @ONLY)
|
configure_file(packaging/linux/flatpak/dev.lizardbyte.sunshine.yml dev.lizardbyte.sunshine.yml @ONLY)
|
||||||
elseif(${SUNSHINE_CONFIGURE_PORTFILE})
|
elseif(${SUNSHINE_CONFIGURE_PORTFILE})
|
||||||
configure_file(packaging/macos/Portfile Portfile @ONLY)
|
configure_file(packaging/macos/Portfile Portfile @ONLY)
|
||||||
@@ -632,7 +633,7 @@ elseif(UNIX)
|
|||||||
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/macos/misc/uninstall_pkg.sh" DESTINATION "${SUNSHINE_ASSETS_DIR}")
|
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/macos/misc/uninstall_pkg.sh" DESTINATION "${SUNSHINE_ASSETS_DIR}")
|
||||||
else()
|
else()
|
||||||
install(DIRECTORY "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/assets/" DESTINATION "${SUNSHINE_ASSETS_DIR}")
|
install(DIRECTORY "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/assets/" DESTINATION "${SUNSHINE_ASSETS_DIR}")
|
||||||
if(${SUNSHINE_CONFIGURE_APPIMAGE})
|
if(${SUNSHINE_CONFIGURE_APPIMAGE} OR ${SUNSHINE_CONFIGURE_FLATPAK})
|
||||||
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/85-sunshine.rules" DESTINATION "${SUNSHINE_ASSETS_DIR}/udev/rules.d")
|
install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/85-sunshine.rules" DESTINATION "${SUNSHINE_ASSETS_DIR}/udev/rules.d")
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service" DESTINATION "${SUNSHINE_ASSETS_DIR}/systemd/user")
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service" DESTINATION "${SUNSHINE_ASSETS_DIR}/systemd/user")
|
||||||
else()
|
else()
|
||||||
|
|||||||
@@ -32,8 +32,9 @@ build() {
|
|||||||
-S "$pkgname" \
|
-S "$pkgname" \
|
||||||
-B build \
|
-B build \
|
||||||
-Wno-dev \
|
-Wno-dev \
|
||||||
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
-D SUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine \
|
-D SUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine \
|
||||||
-D SUNSHINE_ASSETS_DIR="assets" \
|
-D SUNSHINE_ASSETS_DIR="share/sunshine" \
|
||||||
-D LIBAVCODEC_INCLUDE_DIR=/usr/include/ffmpeg4.4 \
|
-D LIBAVCODEC_INCLUDE_DIR=/usr/include/ffmpeg4.4 \
|
||||||
-D LIBAVCODEC_LIBRARIES=/usr/lib/ffmpeg4.4/libavcodec.so \
|
-D LIBAVCODEC_LIBRARIES=/usr/lib/ffmpeg4.4/libavcodec.so \
|
||||||
-D LIBAVDEVICE_INCLUDE_DIR=/usr/include/ffmpeg4.4 \
|
-D LIBAVDEVICE_INCLUDE_DIR=/usr/include/ffmpeg4.4 \
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ cleanup:
|
|||||||
- /lib/pkgconfig
|
- /lib/pkgconfig
|
||||||
- /lib/*.la
|
- /lib/*.la
|
||||||
- /lib/*.a
|
- /lib/*.a
|
||||||
- /share
|
- /share/man
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: cuda
|
- name: cuda
|
||||||
@@ -88,7 +88,7 @@ modules:
|
|||||||
# - --extra-ldflags=-L${FLATPAK_DEST}/cuda/lib64
|
# - --extra-ldflags=-L${FLATPAK_DEST}/cuda/lib64
|
||||||
# - --nvccflags="-gencode arch=compute_52,code=sm_52 -O2"
|
# - --nvccflags="-gencode arch=compute_52,code=sm_52 -O2"
|
||||||
cleanup:
|
cleanup:
|
||||||
- /share/ffmpeg/examples
|
- /share
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
url: http://archive.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/ffmpeg_4.4.2.orig.tar.xz
|
url: http://archive.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/ffmpeg_4.4.2.orig.tar.xz
|
||||||
@@ -137,8 +137,7 @@ modules:
|
|||||||
cleanup:
|
cleanup:
|
||||||
- /bin
|
- /bin
|
||||||
- /lib/avahi
|
- /lib/avahi
|
||||||
- /share/applications/*.desktop
|
- /share
|
||||||
- /share/avahi
|
|
||||||
config-opts:
|
config-opts:
|
||||||
- --with-distro=none
|
- --with-distro=none
|
||||||
- --disable-gobject
|
- --disable-gobject
|
||||||
@@ -208,6 +207,7 @@ modules:
|
|||||||
- -DSUNSHINE_ENABLE_X11=ON
|
- -DSUNSHINE_ENABLE_X11=ON
|
||||||
- -DSUNSHINE_ENABLE_DRM=ON
|
- -DSUNSHINE_ENABLE_DRM=ON
|
||||||
- -DSUNSHINE_ENABLE_CUDA=ON
|
- -DSUNSHINE_ENABLE_CUDA=ON
|
||||||
|
- -DSUNSHINE_CONFIGURE_FLATPAK=ON
|
||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: '@GITHUB_CLONE_URL@'
|
url: '@GITHUB_CLONE_URL@'
|
||||||
|
|||||||
Reference in New Issue
Block a user