Install script for linux x64 as well

This commit is contained in:
Sander Declerck 2026-01-12 15:25:40 +01:00
parent 9d1f7ac6fd
commit f6abfb8a4e
No known key found for this signature in database

View file

@ -317,21 +317,34 @@ main() {
info "Binary installed to: $FINAL_FILE"
# Download safechain-proxy for macOS only
if [ "$OS" = "macos" ]; then
# Download safechain-proxy
if [ "$OS" = "macos" ] || [ "$OS" = "linux" ] || [ "$OS" = "linuxstatic" ]; then
info "Downloading safechain-proxy..."
if [ "$OS" = "macos" ]; then
if [ "$ARCH" = "arm64" ]; then
PROXY_URL="https://github.com/AikidoSec/safechain-internals/releases/download/v0.2.0/safechain-proxy-darwin-arm64"
else
PROXY_URL="https://github.com/AikidoSec/safechain-internals/releases/download/v0.2.0/safechain-proxy-darwin-amd64"
fi
else
# Linux (both linux and linuxstatic)
if [ "$ARCH" = "x64" ]; then
PROXY_URL="https://github.com/AikidoSec/safechain-internals/releases/download/v0.2.0/safechain-proxy-linux-amd64"
else
# Skip for non-x64 Linux architectures
info "Skipping safechain-proxy download (not available for linux-${ARCH})"
PROXY_URL=""
fi
fi
if [ -n "$PROXY_URL" ]; then
PROXY_FILE="${INSTALL_DIR}/safechain-proxy"
download "$PROXY_URL" "$PROXY_FILE"
chmod +x "$PROXY_FILE" || error "Failed to make proxy executable"
info "Proxy installed to: $PROXY_FILE"
fi
fi
# Build setup command based on arguments
SETUP_CMD="setup"