mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-21 02:09:25 +08:00
* Rename voice-control to hex everywhere, without migrations The Cargo package and binary are now hex, every OS keeps its data in a hex folder, and VOICE_CONTROL_* variables are HEX_*. Hex is a fresh app: the macOS voice-control rename, its symlink, and the Windows and Linux beta settings imports are gone. The Windows installer gets a new AppId so it never takes over an old voice-control install's entry. * Format * Drop the Windows paste-last default only the beta import used
20 lines
672 B
Bash
Executable File
20 lines
672 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
support="$HOME/Library/Application Support/hex"
|
|
model_dir="$support/models"
|
|
model="$model_dir/parakeet-unified-en-0.6b-Q8_0.gguf"
|
|
partial="$model.partial"
|
|
revision="7e948f21b7bdbac698d3318db9d350f1096f3b6c"
|
|
sha256="4b50b6dd862bf6e346929aaf4f5eaacec003bfa3f56462d6c874b41ef2f38795"
|
|
|
|
mkdir -p "$model_dir"
|
|
if [ -f "$model" ] && echo "$sha256 $model" | shasum -a 256 -c - >/dev/null 2>&1; then
|
|
exit 0
|
|
fi
|
|
curl -fL --retry 3 --continue-at - \
|
|
"https://huggingface.co/handy-computer/parakeet-unified-en-0.6b-gguf/resolve/$revision/parakeet-unified-en-0.6b-Q8_0.gguf" \
|
|
-o "$partial"
|
|
echo "$sha256 $partial" | shasum -a 256 -c -
|
|
mv "$partial" "$model"
|