Update Portfile and...
- Upload Portfile as artifact during builds and releases - Update assets for cpack packages
This commit is contained in:
1
.github/workflows/CI.yml
vendored
1
.github/workflows/CI.yml
vendored
@@ -254,6 +254,7 @@ jobs:
|
|||||||
# move
|
# move
|
||||||
mv Sunshine.dmg ../artifacts/sunshine-macos.dmg
|
mv Sunshine.dmg ../artifacts/sunshine-macos.dmg
|
||||||
mv Sunshine.zip ../artifacts/sunshine-macos.zip
|
mv Sunshine.zip ../artifacts/sunshine-macos.zip
|
||||||
|
mv Portfile ../artifacts/Portfile
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
||||||
|
|||||||
@@ -312,7 +312,6 @@ else()
|
|||||||
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
||||||
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
||||||
endif()
|
endif()
|
||||||
configure_file(sunshine.desktop.in sunshine.desktop @ONLY)
|
|
||||||
configure_file(sunshine.service.in sunshine.service @ONLY)
|
configure_file(sunshine.service.in sunshine.service @ONLY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -448,7 +447,7 @@ endforeach()
|
|||||||
target_compile_options(sunshine PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${SUNSHINE_COMPILE_OPTIONS}>;$<$<COMPILE_LANGUAGE:CUDA>:${SUNSHINE_COMPILE_OPTIONS_CUDA};-std=c++17>)
|
target_compile_options(sunshine PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${SUNSHINE_COMPILE_OPTIONS}>;$<$<COMPILE_LANGUAGE:CUDA>:${SUNSHINE_COMPILE_OPTIONS_CUDA};-std=c++17>)
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# CPACK
|
# CPACK / Packaging
|
||||||
####
|
####
|
||||||
|
|
||||||
# Common options
|
# Common options
|
||||||
@@ -474,6 +473,8 @@ if(WIN32) # see options at: https://cmake.org/cmake/help/latest/cpack_gen/nsis.h
|
|||||||
|
|
||||||
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/web" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT web)
|
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/web" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT web)
|
||||||
install(FILES "${SUNSHINE_ASSETS_DIR}/apps_windows.json" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT assets)
|
install(FILES "${SUNSHINE_ASSETS_DIR}/apps_windows.json" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT assets)
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/box.png" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT assets)
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/steam.png" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT assets)
|
||||||
install(FILES "${SUNSHINE_ASSETS_DIR}/sunshine.conf" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT assets)
|
install(FILES "${SUNSHINE_ASSETS_DIR}/sunshine.conf" DESTINATION "${SUNSHINE_CONFIG_DIR}" COMPONENT assets)
|
||||||
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/shaders/directx" DESTINATION "${SUNSHINE_CONFIG_DIR}/shaders" COMPONENT assets)
|
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/shaders/directx" DESTINATION "${SUNSHINE_CONFIG_DIR}/shaders" COMPONENT assets)
|
||||||
|
|
||||||
@@ -524,6 +525,8 @@ if(APPLE) # TODO: test
|
|||||||
set(INSTALL_RUNTIME_DIR "${prefix}/MacOS")
|
set(INSTALL_RUNTIME_DIR "${prefix}/MacOS")
|
||||||
|
|
||||||
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/web" DESTINATION "${INSTALL_RUNTIME_DIR}")
|
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/web" DESTINATION "${INSTALL_RUNTIME_DIR}")
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/apps_mac.json" DESTINATION "${INSTALL_RUNTIME_DIR}")
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/box.png" DESTINATION "${INSTALL_RUNTIME_DIR}")
|
||||||
install(FILES "${SUNSHINE_ASSETS_DIR}/sunshine.conf" DESTINATION "${INSTALL_RUNTIME_DIR}")
|
install(FILES "${SUNSHINE_ASSETS_DIR}/sunshine.conf" DESTINATION "${INSTALL_RUNTIME_DIR}")
|
||||||
|
|
||||||
install(TARGETS sunshine
|
install(TARGETS sunshine
|
||||||
@@ -534,13 +537,18 @@ if(APPLE) # TODO: test
|
|||||||
set(CPACK_BUNDLE_NAME "${CMAKE_PROJECT_NAME}")
|
set(CPACK_BUNDLE_NAME "${CMAKE_PROJECT_NAME}")
|
||||||
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/assets/Info.plist")
|
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/assets/Info.plist")
|
||||||
set(CPACK_BUNDLE_ICON "${PROJECT_SOURCE_DIR}/sunshine.icns")
|
set(CPACK_BUNDLE_ICON "${PROJECT_SOURCE_DIR}/sunshine.icns")
|
||||||
|
|
||||||
|
# Portfile
|
||||||
|
configure_file(Portfile.in Portfile @ONLY)
|
||||||
endif()
|
endif()
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/web" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/web" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/85-sunshine-rules.rules" DESTINATION "/etc/udev/rules.d")
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/apps_linux.json" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/box.png" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
||||||
|
install(FILES "${SUNSHINE_ASSETS_DIR}/steam.png" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
||||||
install(FILES "${SUNSHINE_ASSETS_DIR}/sunshine.conf" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
install(FILES "${SUNSHINE_ASSETS_DIR}/sunshine.conf" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
||||||
|
|
||||||
install(FILES "${SUNSHINE_ASSETS_DIR}/apps_linux.json" DESTINATION "${SUNSHINE_CONFIG_DIR}")
|
|
||||||
install(FILES "${SUNSHINE_ASSETS_DIR}/85-sunshine-rules.rules" DESTINATION "/etc/udev/rules.d")
|
|
||||||
install(TARGETS sunshine RUNTIME DESTINATION "/usr/bin")
|
install(TARGETS sunshine RUNTIME DESTINATION "/usr/bin")
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service" DESTINATION "/usr/lib/systemd/user")
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service" DESTINATION "/usr/lib/systemd/user")
|
||||||
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/shaders/opengl" DESTINATION "${SUNSHINE_CONFIG_DIR}/shaders")
|
install(DIRECTORY "${SUNSHINE_ASSETS_DIR}/shaders/opengl" DESTINATION "${SUNSHINE_CONFIG_DIR}/shaders")
|
||||||
@@ -560,6 +568,9 @@ if(UNIX AND NOT APPLE)
|
|||||||
# Installation destination dir
|
# Installation destination dir
|
||||||
set(CPACK_SET_DESTDIR true)
|
set(CPACK_SET_DESTDIR true)
|
||||||
set(CMAKE_INSTALL_PREFIX "/etc/sunshine")
|
set(CMAKE_INSTALL_PREFIX "/etc/sunshine")
|
||||||
|
|
||||||
|
# AppImage desktop file
|
||||||
|
configure_file(sunshine.desktop.in sunshine.desktop @ONLY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|||||||
@@ -5,25 +5,27 @@ PortGroup cmake 1.1
|
|||||||
PortGroup github 1.0
|
PortGroup github 1.0
|
||||||
PortGroup boost 1.0
|
PortGroup boost 1.0
|
||||||
|
|
||||||
github.setup abusse sunshine macos-dev
|
github.setup sunshinestream sunshine master
|
||||||
version 20220224
|
version @PROJECT_VERSION@
|
||||||
|
revision 1
|
||||||
|
|
||||||
categories multimedia
|
categories multimedia
|
||||||
|
license GPL-3
|
||||||
|
maintainers {sunshinestream @SunshineStream} {outlook.com:anselm.busse}
|
||||||
platforms darwin
|
platforms darwin
|
||||||
license GPL-2
|
|
||||||
maintainers {outlook.com:anselm.busse}
|
|
||||||
|
|
||||||
fetch.type git
|
fetch.type git
|
||||||
post-fetch {
|
post-fetch {
|
||||||
system -W ${worksrcpath} "${git.cmd} submodule update --init --recursive"
|
system -W ${worksrcpath} "${git.cmd} submodule update --init --recursive"
|
||||||
}
|
}
|
||||||
|
|
||||||
description Sunshine is a Gamestream host for Moonlight
|
description Sunshine is a Gamestream host for Moonlight.
|
||||||
long_description Sunshine is a Gamestream host for Moonlight
|
long_description {*}${description}
|
||||||
|
|
||||||
homepage https://github.com/SunshineStream/Sunshine
|
homepage https://github.com/SunshineStream/Sunshine
|
||||||
|
|
||||||
depends_lib port:avahi port:ffmpeg port:libopus
|
depends_lib port:avahi \
|
||||||
|
port:ffmpeg \
|
||||||
|
port:libopus
|
||||||
|
|
||||||
|
|
||||||
boost.version 1.76
|
boost.version 1.76
|
||||||
@@ -81,13 +81,19 @@ MacOS
|
|||||||
Disk Image File option:
|
Disk Image File option:
|
||||||
#. Download and install ``sunshine.dmg``
|
#. Download and install ``sunshine.dmg``
|
||||||
|
|
||||||
|
.. Warning:: The Disk Image File is experimental. Limited support will be provided.
|
||||||
|
|
||||||
Portfile option:
|
Portfile option:
|
||||||
#. Install `MacPorts <https://www.macports.org>`_
|
#. Install `MacPorts <https://www.macports.org>`_
|
||||||
#. Download the `Portfile <https://github.com/SunshineStream/Sunshine/blob/master/Portfile>`_ from this repository
|
#. Download the ``Portfile`` to ``/tmp``
|
||||||
to ``/tmp``
|
|
||||||
#. In a terminal run ``cd /tmp && sudo port install``
|
#. In a terminal run ``cd /tmp && sudo port install``
|
||||||
#. The first time you start Sunshine, you will be asked to grant access to screen recording and your microphone.
|
#. The first time you start Sunshine, you will be asked to grant access to screen recording and your microphone.
|
||||||
|
|
||||||
|
Standalone option:
|
||||||
|
#. Download and extract ``sunshine-macos.zip``
|
||||||
|
|
||||||
|
.. Warning:: The Standalone package is experimental. Limited support will be provided.
|
||||||
|
|
||||||
Windows
|
Windows
|
||||||
-------
|
-------
|
||||||
.. image:: https://img.shields.io/github/issues/sunshinestream/sunshine/os:windows:10?logo=github&style=for-the-badge
|
.. image:: https://img.shields.io/github/issues/sunshinestream/sunshine/os:windows:10?logo=github&style=for-the-badge
|
||||||
|
|||||||
Reference in New Issue
Block a user