feat(releaseupdate): archied update check finds releases through go-selfupdate; archie-update-check is deleted

This commit is contained in:
sam committed 2026-10-07 01:12:11 +11:00
1 parent ceb25b95f7
commit 0b9769dbf2
15 files changed
+257 -385

No files matched your search

+2 -2
View File
@@ -63,7 +63,7 @@ for arg in "$@"; do
done
if [ "$AUTO" = 1 ] && [ -z "${ARCHIE_UPDATE_DAEMON_VERSION:-}${ARCHIE_UPDATE_AGENT_VERSION:-}" ]; then
snapshot="$("$(dirname "$0")/archie-update-check")"
snapshot="$("$BIN_DIR/archied" update check)"
export ARCHIE_UPDATE_DAEMON_PREVIOUS="$(jq -r '.Components[] | select(.ID == "daemon") | .Installed' <<< "$snapshot")"
export ARCHIE_UPDATE_DAEMON_VERSION="$(jq -r '.Components[] | select(.ID == "daemon") | .Available' <<< "$snapshot")"
export ARCHIE_UPDATE_AGENT_PREVIOUS="$(jq -r '.Components[] | select(.ID == "agent") | .Installed' <<< "$snapshot")"
@@ -226,7 +226,7 @@ if [[ ",$components," == *,daemon,* ]]; then
done
mkdir -p "$(dirname "$DB_SNAPSHOT")"
"$BIN_DIR/archie-state-store" backup -config "$CONFIG_PATH" -out "$DB_SNAPSHOT"
built="$GATEWAY_BINARIES archie-update-install archie-update-watchdog archie-update-check"
built="$GATEWAY_BINARIES archie-update-install archie-update-watchdog"
fi
# Freeze recovery code and every prior file before publishing the intent.