Give the platform guard its own detector copy instead of moving it

Moving omarchy-hw-platform from omarchy to omarchy-settings loses the file
when the dev pair installs in separate transactions, since omarchy-dev does
not pin omarchy-settings-dev's version. Settings now installs a copy beside
the guard script and omarchy keeps its detector, so no file changes owner.
This commit is contained in:
Marcelo Alcantara committed 2026-09-25 20:01:13 +10:00
1 parent 0a65168b09
commit fb2ade61fc
4 files changed
+14 -24

No files matched your search

+2 -3
View File
@@ -110,15 +110,14 @@ package() {
# Runtime binaries — ship everything in bin/ except the debug helpers
# that ship from omarchy-settings (needed before omarchy is installed,
# e.g. on the ISO live env), and the platform detector, which the settings
# package's pacman platform guard runs before omarchy is installed.
# e.g. on the ISO live env).
install -d "$pkgdir/usr/bin" "$pkgdir/usr/share/omarchy/bin"
for bin in bin/*; do
[[ -f $bin ]] || continue
local base
base=$(basename "$bin")
case "$base" in
omarchy-debug|omarchy-debug-idle|omarchy-upload-log|omarchy-hw-platform)
omarchy-debug|omarchy-debug-idle|omarchy-upload-log)
continue
;;
esac