feat(update): Add firmware update script to update process (#2014)

* Add firmware update script and include in update process

* typo

* type 2

* add sudo

* Add firmware update option to update menu

* Remove firmware update command from update process

* Lazy-install firmware updater

* Move option down and change icon

* Only lazy install if missing

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Ofir Miller
2025-10-12 23:34:50 +03:00
committed by GitHub
parent 268b48644c
commit 35cc9937ff
2 changed files with 13 additions and 1 deletions

View File

@@ -385,13 +385,14 @@ show_remove_menu() {
}
show_update_menu() {
case $(menu "Update" " Omarchy\n Branch\n Config\n󰸌 Extra Themes\n Process\n󰇅 Hardware\n Password\n Timezone") in
case $(menu "Update" " Omarchy\n Branch\n Config\n󰸌 Extra Themes\n Process\n󰇅 Hardware\n Firmware\n Password\n Timezone") in
*Omarchy*) present_terminal omarchy-update ;;
*Branch*) show_update_branch_menu ;;
*Config*) show_update_config_menu ;;
*Themes*) present_terminal omarchy-theme-update ;;
*Process*) show_update_process_menu ;;
*Hardware*) show_update_hardware_menu ;;
*Firmware*) present_terminal omarchy-update-firmware ;;
*Timezone*) omarchy-cmd-tzupdate ;;
*Password*) show_update_password_menu ;;
*) show_main_menu ;;

11
bin/omarchy-update-firmware Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
echo -e "\e[32mUpdate Firmare\e[0m"
if omarchy-cmd-missing fwupdmgr; then
omarchy-pkg-add fwupd
fi
fwupdmgr refresh
sudo fwupdmgr update