diff --git a/INSTALLATION.md b/INSTALLATION.md index acb8bbb..9fef519 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -19,10 +19,10 @@ This is the simplest method for Debian-based systems like Ubuntu, Debian, Linux ```bash # Download the latest .deb release -wget https://github.com/nexoral/ContainDB/releases/download/v6.15.41-stable/containDB_6.15.41-stable_amd64.deb +wget https://github.com/nexoral/ContainDB/releases/download/v6.16.41-stable/containDB_6.16.41-stable_amd64.deb # Install the package -sudo dpkg -i containDB_6.15.41-stable_amd64.deb +sudo dpkg -i containDB_6.16.41-stable_amd64.deb # If you see dependency errors, run: sudo apt-get install -f diff --git a/README.md b/README.md index d4678fd..411401a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ ![License](https://img.shields.io/badge/license-MIT-green) ![Go Version](https://img.shields.io/badge/go-%3E%3D1.18-blue) - ![Platform](https://img.shields.io/badge/platform-linux-lightgrey) + ![Platform](https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-lightgrey) + ![npm](https://img.shields.io/badge/available%20via-npm-red) ## The Problem ContainDB Solves diff --git a/Scripts/installer.sh b/Scripts/installer.sh index ad289e7..937668f 100755 --- a/Scripts/installer.sh +++ b/Scripts/installer.sh @@ -7,7 +7,7 @@ ARCH=$(dpkg --print-architecture) echo "Detected architecture: $ARCH" -VERSION="6.15.41-stable" +VERSION="6.16.41-stable" if [[ "$ARCH" == "amd64" ]]; then PKG="containdb_${VERSION}_amd64.deb" diff --git a/VERSION b/VERSION index 1d235fb..5130aaa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.15.41-stable +6.16.41-stable diff --git a/src/Core/main.go b/src/Core/main.go index a0a8a37..afcc118 100644 --- a/src/Core/main.go +++ b/src/Core/main.go @@ -11,7 +11,7 @@ import ( ) func main() { - VERSION := "6.15.41-stable" + VERSION := "6.16.41-stable" // handle version flag without requiring sudo if len(os.Args) > 1 && os.Args[1] == "--version" { diff --git a/src/base/Banner.go b/src/base/Banner.go index 0810f2c..dc122b2 100644 --- a/src/base/Banner.go +++ b/src/base/Banner.go @@ -2,12 +2,14 @@ package base import ( "fmt" + "os" + "runtime" "strings" "github.com/fatih/color" ) -const Version = "6.15.41-stable" +const Version = "6.16.41-stable" func ShowBanner() { // Define styles @@ -44,8 +46,18 @@ func ShowBanner() { fmt.Printf("%s\n", boldWhite("🛠️ Welcome to ")+boldGreen("ContainDB")+boldWhite(" - Containerized Database Manager CLI")) fmt.Println(border) + // Detect installation method using environment variable and runtime info + installMethod := "Manual Installation" + installSource := os.Getenv("CONTAINDB_INSTALL_SOURCE") + if installSource == "npm" { + installMethod = "NPM Package" + } else if runtime.GOOS == "linux" { + installMethod = "Linux Script/Package" + } + // Info Block fmt.Printf("%s %s\n", boldCyan("📦 Version:"), white(Version)) + fmt.Printf("%s %s\n", boldCyan("📥 Installed via:"), white(installMethod)) fmt.Printf("%s %s\n", boldCyan("👨‍💻 Author:"), white("Ankan Saha")) fmt.Printf("%s %s\n", boldCyan("🔗 GitHub:"), cyan("https://github.com/nexoral/ContainDB")) fmt.Printf("%s %s\n", boldCyan("💖 Sponsor:"), cyan("https://github.com/sponsors/AnkanSaha"))