mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Install script for linux x64 as well
This commit is contained in:
parent
9d1f7ac6fd
commit
f6abfb8a4e
1 changed files with 22 additions and 9 deletions
|
|
@ -317,20 +317,33 @@ 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 [ "$ARCH" = "arm64" ]; then
|
||||
PROXY_URL="https://github.com/AikidoSec/safechain-internals/releases/download/v0.2.0/safechain-proxy-darwin-arm64"
|
||||
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
|
||||
PROXY_URL="https://github.com/AikidoSec/safechain-internals/releases/download/v0.2.0/safechain-proxy-darwin-amd64"
|
||||
# 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
|
||||
|
||||
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"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue