Release 2.2.1: universal macOS DMG and arch install fix.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-07-29 10:36:24 +03:00
co-authored by Cursor
parent 8c513f6e08
commit a2cdad5ebe
22 changed files with 402 additions and 66 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/bin/bash
set -euo pipefail
BASE="https://git.evilfox.cc/test2/navi/raw/branch/main/dist/navis-release"
ARCH="$(uname -m)"
case "$ARCH" in
arm64)
SUBDIR="darwin-arm64"
;;
x86_64)
SUBDIR="darwin-amd64"
;;
*)
echo "Неподдерживаемая архитектура: $ARCH" >&2
exit 1
;;
esac
DEST="${1:-$HOME/Downloads/Navis.dmg}"
UNIVERSAL="$BASE/darwin-universal/Navis.dmg"
SPECIFIC="$BASE/$SUBDIR/Navis.dmg"
echo "Mac: $ARCH"
echo "Рекомендуется универсальный DMG (Intel + Apple Silicon)…"
if curl -fL -o "$DEST" "$UNIVERSAL"; then
echo "Скачан: $DEST"
else
echo "Универсальный DMG недоступен, скачиваю $SUBDIR"
curl -fL -o "$DEST" "$SPECIFIC"
fi
open "$DEST"
echo "Откройте диск и перетащите Navis.app в Программы."