mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
30 lines
804 B
Bash
Executable File
30 lines
804 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Run the update inside a PTY so pacman/yay keep showing download progress
|
|
# while still logging the full session for later analysis.
|
|
if [[ -z $OMARCHY_UPDATE_LOGGED ]]; then
|
|
script_command=$(printf '%q ' "$0" "$@")
|
|
exec env OMARCHY_UPDATE_LOGGED=1 script -qefc "$script_command" "/tmp/omarchy-update.log"
|
|
fi
|
|
|
|
# Ensure screensaver/sleep doesn't set in during updates
|
|
hyprctl dispatch tagwindow +noidle &>/dev/null || true
|
|
|
|
# Perform all update steps
|
|
omarchy-update-keyring
|
|
omarchy-update-available-reset
|
|
omarchy-update-system-pkgs
|
|
omarchy-migrate
|
|
omarchy-update-aur-pkgs
|
|
omarchy-update-orphan-pkgs
|
|
omarchy-hook post-update
|
|
|
|
omarchy-update-analyze-logs
|
|
|
|
omarchy-update-restart
|
|
|
|
# Re-enable screensaver/sleep after updates
|
|
hyprctl dispatch tagwindow -- -noidle &>/dev/null || true
|