diff --git a/ct/immichframe.sh b/ct/immichframe.sh index aae6885e4..9264d3b9f 100644 --- a/ct/immichframe.sh +++ b/ct/immichframe.sh @@ -30,6 +30,25 @@ function update_script() { exit fi + if ! dotnet --list-sdks 2>/dev/null | grep -q '^8\.'; then + msg_info "Installing .NET SDK 8.0" + if [[ "$(arch_resolve)" == "arm64" ]]; then + curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh + $STD bash /tmp/dotnet-install.sh --channel 8.0 --install-dir /usr/lib/dotnet8 + ln -sf /usr/lib/dotnet8/dotnet /usr/bin/dotnet + rm -f /tmp/dotnet-install.sh + else + setup_deb822_repo \ + "microsoft" \ + "https://packages.microsoft.com/keys/microsoft-2025.asc" \ + "https://packages.microsoft.com/debian/13/prod/" \ + "trixie" \ + "main" + $STD apt install -y dotnet-sdk-8.0 + fi + msg_ok "Installed .NET SDK 8.0" + fi + if check_for_gh_release "immichframe" "immichFrame/ImmichFrame"; then msg_info "Stopping Service" systemctl stop immichframe