mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-08 19:14:41 +00:00
Add the .INSTALL script needed for kmsgrab to work
This also removes the standalone PKGBUILD artifact because our PKGBUILD has external dependencies now.
This commit is contained in:
parent
74ce047a4b
commit
cb4bfaa2f4
@ -29,6 +29,7 @@ elseif (UNIX)
|
||||
# configure the arch linux pkgbuild
|
||||
if(${SUNSHINE_CONFIGURE_PKGBUILD})
|
||||
configure_file(packaging/linux/Arch/PKGBUILD PKGBUILD @ONLY)
|
||||
configure_file(packaging/linux/Arch/sunshine.install sunshine.install @ONLY)
|
||||
endif()
|
||||
|
||||
# configure the flatpak manifest
|
||||
|
@ -78,6 +78,7 @@ _MAKE
|
||||
|
||||
WORKDIR /build/sunshine/pkg
|
||||
RUN mv /build/sunshine/build/PKGBUILD .
|
||||
RUN mv /build/sunshine/build/sunshine.install .
|
||||
|
||||
# namcap and build PKGBUILD file
|
||||
RUN <<_PKGBUILD
|
||||
@ -91,7 +92,6 @@ _PKGBUILD
|
||||
|
||||
FROM scratch as artifacts
|
||||
|
||||
COPY --link --from=sunshine-build /build/sunshine/pkg/PKGBUILD /PKGBUILD
|
||||
COPY --link --from=sunshine-build /build/sunshine/pkg/sunshine*.pkg.tar.zst /sunshine.pkg.tar.zst
|
||||
|
||||
FROM sunshine-base as sunshine
|
||||
|
@ -38,7 +38,6 @@ Install
|
||||
=========================================== ============== ============== ================================
|
||||
Package CUDA Version Min Driver CUDA Compute Capabilities
|
||||
=========================================== ============== ============== ================================
|
||||
PKGBUILD User dependent User dependent User dependent
|
||||
sunshine.AppImage 11.8.0 450.80.02 35;50;52;60;61;62;70;75;80;86;90
|
||||
sunshine.pkg.tar.zst 11.8.0 450.80.02 35;50;52;60;61;62;70;75;80;86;90
|
||||
sunshine_{arch}.flatpak 12.0.0 525.60.13 50;52;60;61;62;70;75;80;86;90
|
||||
@ -90,21 +89,7 @@ Install
|
||||
|
||||
./sunshine.AppImage --remove
|
||||
|
||||
.. tab:: Archlinux PKGBUILD
|
||||
|
||||
#. Open terminal and run the following code.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
wget https://github.com/LizardByte/Sunshine/releases/latest/download/PKGBUILD
|
||||
makepkg -fi
|
||||
|
||||
Uninstall:
|
||||
.. code-block:: bash
|
||||
|
||||
pacman -R sunshine
|
||||
|
||||
.. tab:: Archlinux pkg
|
||||
.. tab:: Arch Linux Package
|
||||
|
||||
#. Open terminal and run the following code.
|
||||
|
||||
@ -205,7 +190,7 @@ Install
|
||||
|
||||
sudo dnf remove sunshine
|
||||
|
||||
The `deb`, `rpm`, `Flatpak` and `AppImage` packages should handle these steps automatically.
|
||||
The `deb`, `rpm`, `zst`, `Flatpak` and `AppImage` packages should handle these steps automatically.
|
||||
Third party packages may not.
|
||||
|
||||
Sunshine needs access to `uinput` to create mouse and gamepad events.
|
||||
|
@ -8,6 +8,7 @@ pkgdesc="@PROJECT_DESCRIPTION@"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url=@PROJECT_HOMEPAGE_URL@
|
||||
license=('GPL3')
|
||||
install=sunshine.install
|
||||
|
||||
depends=('avahi'
|
||||
'boost-libs'
|
||||
|
12
packaging/linux/Arch/sunshine.install
Normal file
12
packaging/linux/Arch/sunshine.install
Normal file
@ -0,0 +1,12 @@
|
||||
do_setcap() {
|
||||
setcap cap_sys_admin+p $(readlink -f $(which sunshine))
|
||||
}
|
||||
|
||||
post_install() {
|
||||
do_setcap
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
do_setcap
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user