Resolve Hermes profile homes before package setup

This commit is contained in:
Spencer Bull committed 2026-09-06 22:29:49 -05:00
1 parent 351f188d02
commit beb164a9a2
3 files changed
+80 -9

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ source=("install-${_commit}.sh::https://raw.githubusercontent.com/NousResearch/h
'hermes-desktop.png')
sha256sums=('5854b15670b51a8daae8f59ddfa917062de9f74be261eb73b4b8d719710f8968'
'821556e6336796450ab852d375117b48a4887e71d255794fd6318d99982a5ab6'
'85834b56348529413bbc248282d3a1769a2276a016affe9eafb7dd8773d9e12f'
'27040084e691421dc1748e7646ae7ee79d5777e8ee1e1ec7581a68432d4a29c4'
'c37d4cfa4801eccbd769fddaebb2115d54faa49a5b7bc0f305f563e3cefd9bd8'
'd60d164e24fdcf6532133b8ea43c77a201e4b9e9dbc396187b58d51d8590ef52')
+13 -7
View File
@@ -1,18 +1,24 @@
#!/bin/bash
set -euo pipefail
export HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}"
HERMES_HOME=$(realpath -ms "$HERMES_HOME")
root="$HERMES_HOME/hermes-agent"
marker="$root/.omarchy-hermes-desktop"
installer=/usr/share/hermes-desktop/install.sh
cli=("$root/venv/bin/python" "$root/hermes")
die() {
echo "Hermes: $*" >&2
exit 1
}
HERMES_HOME=$(realpath -ms -- "${HERMES_HOME:-$HOME/.hermes}")
# A profile session shares its parent home's installation and launchers.
home_parent=${HERMES_HOME%/*}
if [[ ${home_parent##*/} == "profiles" ]]; then
HERMES_HOME=${home_parent%/*}
fi
[[ $HERMES_HOME == /* && $HERMES_HOME != "/" ]] || die "Use a Hermes data directory other than /."
export HERMES_HOME
root="$HERMES_HOME/hermes-agent"
marker="$root/.omarchy-hermes-desktop"
installer=/usr/share/hermes-desktop/install.sh
cli=("$root/venv/bin/python" "$root/hermes")
desktop_executable() {
local executable
for executable in "$root/apps/desktop/release/linux-unpacked/"{Hermes,hermes}; do