omarchy-settings: pass #13362's platform-aware hooks through on aarch64
omacom/omarchy#13362 sets HOOKS per platform inside 00-omarchy-hooks.conf, with no column-0 HOOKS= line, so the aarch64 build failed on it; settings-dev tracks quattro automatically and would break as soon as it lands. Wrap only a single-line HOOKS=(...), refuse any other column-0 HOOKS=, then source the shipped files onto a Mac line and a stock line: the Mac line must come through unchanged and the stock one must not. Back up 00-omarchy-hooks.conf when it ships, and refuse it without the omarchy-hw-platform copy it asks. The test now uses the real v4.0.4 hooks file, #13362's two files and omarchy-mac-boot's 90-94 fragments, and covers upgrades over a hand-restored file.
This commit is contained in:
1 parent
919b084b93
commit
caac8448be
11 files changed
+564
-62
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# Generated by the Omarchy Apple Silicon image builder.
|
||||
_omarchy_asahi_hooks=()
|
||||
_omarchy_asahi_added=false
|
||||
for _omarchy_asahi_hook in "${HOOKS[@]}"; do
|
||||
if [[ $_omarchy_asahi_hook == asahi ]]; then
|
||||
_omarchy_asahi_added=true
|
||||
fi
|
||||
if [[ $_omarchy_asahi_hook == filesystems && $_omarchy_asahi_added == false ]]; then
|
||||
_omarchy_asahi_hooks+=(asahi omarchy-vendorfw)
|
||||
_omarchy_asahi_added=true
|
||||
fi
|
||||
_omarchy_asahi_hooks+=("$_omarchy_asahi_hook")
|
||||
done
|
||||
if [[ $_omarchy_asahi_added == false ]]; then
|
||||
_omarchy_asahi_hooks+=(asahi omarchy-vendorfw)
|
||||
fi
|
||||
HOOKS=("${_omarchy_asahi_hooks[@]}")
|
||||
unset _omarchy_asahi_hooks _omarchy_asahi_hook _omarchy_asahi_added
|
||||
Reference in new issue
Block a user