-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-macos.sh
More file actions
47 lines (35 loc) · 1.06 KB
/
install-macos.sh
File metadata and controls
47 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# ClawController macOS Installer
# Downloads and installs ClawController with all required dependencies
set -e
VERSION="0.1.0"
APP_NAME="ClawController"
TEMP_DIR="/tmp/ClawController-${VERSION}"
echo "Installing ClawController v${VERSION} for macOS..."
# Detect Apple Silicon or Intel
if [[ $(uname -m) == "arm64" ]]; then
ARCH="aarch64"
ARCH_NAME="Apple Silicon"
else
ARCH="x64"
ARCH_NAME="Intel"
fi
echo "Detected architecture: ${ARCH_NAME}"
# Download URL
APP_TAR_NAME="${APP_NAME}_${VERSION}_universal.app.tar.gz"
DOWNLOAD_URL="https://github.com/OpenKrab/ClawStart/releases/download/claw-controller-v${VERSION}/${APP_TAR_NAME}"
echo "Downloading ${APP_TAR_NAME}..."
mkdir -p "${TEMP_DIR}"
cd "${TEMP_DIR}"
curl -L -o "${APP_TAR_NAME}" "${DOWNLOAD_URL}"
# Extract
echo "Extracting..."
tar -xzf "${APP_TAR_NAME}"
# Move to Applications
echo "Installing to /Applications..."
sudo mv "${APP_NAME}.app" /Applications/
# Cleanup
cd /
rm -rf "${TEMP_DIR}"
echo "Installation complete!"
echo "Open ClawController from: /Applications/${APP_NAME}.app"