From 88d66e12324faea4a1b0bcb1ff9c97a1ca91b2fc Mon Sep 17 00:00:00 2001 From: Thiago Canozzo Lahr Date: Thu, 26 Feb 2026 15:19:30 -0300 Subject: [PATCH] update Signed-off-by: Thiago Canozzo Lahr --- ct/immichframe.sh | 9 ++++----- install/immichframe-install.sh | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ct/immichframe.sh b/ct/immichframe.sh index 632f2eb2e..897c2644f 100644 --- a/ct/immichframe.sh +++ b/ct/immichframe.sh @@ -35,22 +35,21 @@ function update_script() { msg_ok "Stopped Service" msg_info "Updating ImmichFrame" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp" - SRCDIR=$(ls -d /tmp/ImmichFrame-*) + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp/immichframe" msg_info "Building Application" - cd "${SRCDIR}" + cd /tmp/immichframe $STD /opt/dotnet/dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \ --configuration Release \ --runtime linux-x64 \ --self-contained false \ --output /app - cd "${SRCDIR}/immichFrame.Web" + cd /tmp/immichframe/immichFrame.Web $STD npm ci $STD npm run build rm -rf /app/wwwroot/* cp -r build/* /app/wwwroot - rm -rf "${SRCDIR}" + rm -rf /tmp/immichframe msg_ok "Application Built" msg_info "Starting Service" diff --git a/install/immichframe-install.sh b/install/immichframe-install.sh index 39722aa91..9353bffd9 100644 --- a/install/immichframe-install.sh +++ b/install/immichframe-install.sh @@ -33,22 +33,21 @@ $STD /tmp/dotnet-install.sh \ ln -sf /opt/dotnet/dotnet /usr/local/bin/dotnet msg_ok "Installed .NET 8 SDK" -fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp" -SRCDIR=$(ls -d /tmp/ImmichFrame-*) +fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp/immichframe" msg_info "Building Application" mkdir -p /app -cd "${SRCDIR}" +cd /tmp/immichframe $STD dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \ --configuration Release \ --runtime linux-x64 \ --self-contained false \ --output /app -cd "${SRCDIR}/immichFrame.Web" +cd /tmp/immichframe/immichFrame.Web $STD npm ci $STD npm run build cp -r build/* /app/wwwroot -rm -rf "${SRCDIR}" +rm -rf /tmp/immichframe msg_ok "Application Built" msg_info "Configuring ImmichFrame"