mirror of
https://github.com/neosubhamoy/neodlp-website.git
synced 2026-02-04 12:22:21 +05:30
(feat): added macos curl-bash installer command and improved curl-bash installer
This commit is contained in:
@@ -5,8 +5,16 @@ OWNER="neosubhamoy"
|
||||
REPO="neodlp"
|
||||
DOWNLOAD_DIR=~/Downloads
|
||||
|
||||
# Detect system architecture
|
||||
# Check if NeoDLP is already installed
|
||||
echo "### === NeoDLP MacOS Curl-Bash Installer === ###"
|
||||
echo "🔃 Checking system requirements..."
|
||||
if [ -d "/Applications/NeoDLP.app" ]; then
|
||||
echo "❗ NeoDLP is already installed at /Applications/NeoDLP.app"
|
||||
echo "🛑 Installation aborted."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Detect system architecture
|
||||
ARCH=$(uname -m)
|
||||
|
||||
if [[ "$ARCH" == "arm64" ]]; then
|
||||
@@ -17,6 +25,7 @@ elif [[ "$ARCH" == "x86_64" ]]; then
|
||||
echo "🧠 Detected Intel-based Mac (x86_64)"
|
||||
else
|
||||
echo "❌ Unsupported architecture: $ARCH"
|
||||
echo "🛑 Installation aborted."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -27,7 +36,7 @@ TAG=$(curl -s https://api.github.com/repos/$OWNER/$REPO/releases/latest | grep '
|
||||
URL="https://github.com/$OWNER/$REPO/releases/download/$TAG/$ASSET_NAME"
|
||||
|
||||
# Download the release asset
|
||||
echo "📥 Downloading $ASSET_NAME from $TAG..."
|
||||
echo "⬇️ Downloading $ASSET_NAME from tag $TAG..."
|
||||
curl -L -o "$DOWNLOAD_DIR/$ASSET_NAME" "$URL"
|
||||
|
||||
# Extract the archive
|
||||
@@ -39,4 +48,8 @@ APP_NAME="NeoDLP.app"
|
||||
echo "📦 Moving $APP_NAME to /Applications directory (sudo required)"
|
||||
sudo mv "$APP_NAME" /Applications/
|
||||
|
||||
# Clean up the downloaded archive
|
||||
echo "🧹 Cleaning up..."
|
||||
rm "$DOWNLOAD_DIR/$ASSET_NAME"
|
||||
|
||||
echo "✅ Installed NeoDLP successfully!"
|
||||
Reference in New Issue
Block a user