@@ -35,22 +35,21 @@ function update_script() {
|
|||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Updating ImmichFrame"
|
msg_info "Updating ImmichFrame"
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp/immichframe"
|
||||||
SRCDIR=$(ls -d /tmp/ImmichFrame-*)
|
|
||||||
msg_info "Building Application"
|
msg_info "Building Application"
|
||||||
cd "${SRCDIR}"
|
cd /tmp/immichframe
|
||||||
$STD /opt/dotnet/dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \
|
$STD /opt/dotnet/dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
--runtime linux-x64 \
|
--runtime linux-x64 \
|
||||||
--self-contained false \
|
--self-contained false \
|
||||||
--output /app
|
--output /app
|
||||||
|
|
||||||
cd "${SRCDIR}/immichFrame.Web"
|
cd /tmp/immichframe/immichFrame.Web
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
rm -rf /app/wwwroot/*
|
rm -rf /app/wwwroot/*
|
||||||
cp -r build/* /app/wwwroot
|
cp -r build/* /app/wwwroot
|
||||||
rm -rf "${SRCDIR}"
|
rm -rf /tmp/immichframe
|
||||||
msg_ok "Application Built"
|
msg_ok "Application Built"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@@ -33,22 +33,21 @@ $STD /tmp/dotnet-install.sh \
|
|||||||
ln -sf /opt/dotnet/dotnet /usr/local/bin/dotnet
|
ln -sf /opt/dotnet/dotnet /usr/local/bin/dotnet
|
||||||
msg_ok "Installed .NET 8 SDK"
|
msg_ok "Installed .NET 8 SDK"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp"
|
fetch_and_deploy_gh_release "immichframe" "immichFrame/ImmichFrame" "tarball" "latest" "/tmp/immichframe"
|
||||||
SRCDIR=$(ls -d /tmp/ImmichFrame-*)
|
|
||||||
|
|
||||||
msg_info "Building Application"
|
msg_info "Building Application"
|
||||||
mkdir -p /app
|
mkdir -p /app
|
||||||
cd "${SRCDIR}"
|
cd /tmp/immichframe
|
||||||
$STD dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \
|
$STD dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
--runtime linux-x64 \
|
--runtime linux-x64 \
|
||||||
--self-contained false \
|
--self-contained false \
|
||||||
--output /app
|
--output /app
|
||||||
cd "${SRCDIR}/immichFrame.Web"
|
cd /tmp/immichframe/immichFrame.Web
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
cp -r build/* /app/wwwroot
|
cp -r build/* /app/wwwroot
|
||||||
rm -rf "${SRCDIR}"
|
rm -rf /tmp/immichframe
|
||||||
msg_ok "Application Built"
|
msg_ok "Application Built"
|
||||||
|
|
||||||
msg_info "Configuring ImmichFrame"
|
msg_info "Configuring ImmichFrame"
|
||||||
|
|||||||
Reference in New Issue
Block a user