chore: migrate to qt tray for all platforms (#5260)

This commit is contained in:
Dave Lane
2026-07-28 22:22:43 -04:00
committed by GitHub
parent e2074c6d62
commit 089f15d4b6
16 changed files with 113 additions and 27 deletions

View File

@@ -27,7 +27,6 @@ pkg install -y \
devel/evdev-proto \
devel/git \
devel/libevdev \
devel/libnotify \
devel/llvm19 \
devel/ninja \
devel/pkgconf \
@@ -102,6 +101,8 @@ dependencies=(
"openssl@3"
"opus"
"pkg-config"
"qtbase"
"qtsvg"
)
brew install "${dependencies[@]}"
```
@@ -130,6 +131,8 @@ dependencies=(
"ninja"
"npm9"
"pkgconfig"
"qt6-qtbase"
"qt6-qtsvg"
)
sudo port install "${dependencies[@]}"
```
@@ -174,6 +177,7 @@ dependencies=(
"mingw-w64-${TOOLCHAIN}-openssl"
"mingw-w64-${TOOLCHAIN}-opus"
"mingw-w64-${TOOLCHAIN}-toolchain"
"mingw-w64-${TOOLCHAIN}-qt6-static"
)
if [[ "${MSYSTEM}" == "UCRT64" ]]; then
dependencies+=(
@@ -185,6 +189,14 @@ fi
pacman -S "${dependencies[@]}"
```
The static Qt package is installed under a separate prefix. Add the following options when configuring a Windows
build so Sunshine and Qt's third-party dependencies are linked statically:
```bash
-DCMAKE_PREFIX_PATH="${MINGW_PREFIX}/qt6-static" \
-DSUNSHINE_USE_STATIC_QT=ON
```
To create a WiX installer, you also need to install [.NET](https://dotnet.microsoft.com/download).
For ARM64: To build frontend, you also need to install [Node.JS](https://nodejs.org/en/download)