hex/scripts/install-linux.sh
Dax Raad dfa2d852b8 feat(linux): one Hex process with the window in-process
The Linux host, the single-instance socket, the HUD, and the window run in
one process. A relaunch forwards Activate with the launcher's activation
token; hex dictation, voice-action, paste-last, status, and quit forward
over the same socket, and shortcut commands go straight to the listener.
Without an instance a launch starts the managed unit (Type=notify) or
becomes Hex. The Rune window is the default on rune-ui builds and talks to
the host directly; GPUI stays behind --ui gpui. Quit Hex lives in the
sidebar.
2026-10-22 14:46:49 -04:00

21 lines
620 B
Shell
Executable file

#!/bin/sh
set -eu
root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)
installer="$root/scripts/install-linux-release.sh"
if [ "${1:-install}" = uninstall ]; then
exec "$installer" uninstall
fi
if [ "${1:-install}" != install ]; then
echo "Usage: $0 [install|uninstall]" >&2
exit 1
fi
version=$(sed -n 's/^version = "\([^"]*\)"/\1/p' "$root/Cargo.toml" | head -1)
target_dir=${CARGO_TARGET_DIR:-"$root/target"}
cargo build --locked --release --features rune-ui --manifest-path "$root/Cargo.toml"
HEX_INSTALL_ARTIFACT="$target_dir/release/voice-control" \
HEX_INSTALL_VERSION="$version" \
exec "$installer"