App installs route first-time updates through omarchy-update

Direct pacman -Syu trips the update pacman guard once real upgrades
exist; the catalog installer now runs the upstream update pipeline
interactively and fails fast with instructions when non-interactive.
omarchy-cn-kimi-install gains its executable bit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
2026-08-25 13:27:38 -04:00
co-authored by Claude Fable 5
parent a317bfb36f
commit 9be4d24d6d
2 changed files with 8 additions and 3 deletions
+8 -3
View File
@@ -32,10 +32,15 @@ fi
case "$source_type" in
aur)
# Offline installs ship no sync db; yay then treats repo deps as AUR
# Offline installs ship no sync db; yay then treats repo deps as AUR.
# System upgrades must go through the omarchy-update pipeline (pacman guard).
if ! compgen -G "/var/lib/pacman/sync/*.db" > /dev/null; then
echo "首次安装:正在同步软件仓库并更新系统(pacman -Syu)……"
sudo pacman -Syu --noconfirm
if [[ ! -t 0 ]]; then
echo "首次安装应用前请先完成一次系统更新: omarchy-update" >&2
exit 1
fi
echo "首次安装应用前需要完成一次系统更新。"
omarchy-update
fi
omarchy-pkg-aur-add "$(jq -r '.package' <<<"$entry")"
;;
Regular → Executable
View File