mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Drop the rune-ui feature and the --ui flags, and delete app_window and its OS modules, desktop_ui, design_tokens, text_input, motion, desktop_transcription_picker, windows_ui, the GPUI Windows HUD, the GTK Linux HUD, the GPUI meeting capsules and app lifecycle, hex preview, capture-preview.sh, the GPUI fork patch, and the dead code they left. Pure helpers move to opencode_catalog, HotkeyBinding::standalone_side, desktop_activity::event_summary, and the panes that own them. The macOS Metal HUD keeps its springs in spring.rs. gio/glib replace gtk.
21 lines
601 B
Shell
Executable file
21 lines
601 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 --manifest-path "$root/Cargo.toml"
|
|
|
|
HEX_INSTALL_ARTIFACT="$target_dir/release/voice-control" \
|
|
HEX_INSTALL_VERSION="$version" \
|
|
exec "$installer"
|