From 26f0176f229a991ea1fab3804b915e925e11721f Mon Sep 17 00:00:00 2001 From: Ankan Saha Date: Fri, 26 Jun 2026 23:33:52 +0530 Subject: [PATCH] feat: Update version to 9.20.46-stable and modify installation scripts --- INSTALLATION.md | 4 +-- Scripts/installer.sh | 2 +- VERSION | 2 +- npm/.npmignore | 12 ++++++++ npm/InstallController.js | 38 ++++++++++++++++++++++++ npm/package.json | 64 ++++++++++++++++++++++++++++++++++++++++ src/Core/main.go | 2 +- src/base/Banner.go | 2 +- 8 files changed, 120 insertions(+), 6 deletions(-) create mode 100644 npm/.npmignore create mode 100755 npm/InstallController.js create mode 100644 npm/package.json diff --git a/INSTALLATION.md b/INSTALLATION.md index 8d7ad30..25e96e4 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/v9.20.44-stable/containDB_9.20.44-stable_amd64.deb +wget https://github.com/nexoral/ContainDB/releases/download/v9.20.46-stable/containDB_9.20.46-stable_amd64.deb # Install the package -sudo dpkg -i containDB_9.20.44-stable_amd64.deb +sudo dpkg -i containDB_9.20.46-stable_amd64.deb # If you see dependency errors, run: sudo apt-get install -f diff --git a/Scripts/installer.sh b/Scripts/installer.sh index aec07fe..20449d1 100755 --- a/Scripts/installer.sh +++ b/Scripts/installer.sh @@ -7,7 +7,7 @@ ARCH=$(dpkg --print-architecture) echo "Detected architecture: $ARCH" -VERSION="9.20.44-stable" +VERSION="9.20.46-stable" if [[ "$ARCH" == "amd64" ]]; then PKG="containdb_${VERSION}_amd64.deb" diff --git a/VERSION b/VERSION index b050c20..8bbc39e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.20.44-stable +9.20.46-stable diff --git a/npm/.npmignore b/npm/.npmignore new file mode 100644 index 0000000..e79f1cd --- /dev/null +++ b/npm/.npmignore @@ -0,0 +1,12 @@ + +# Ignore common development files +node_modules/ +.DS_Store +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.git/ +.gitignore + +# We explicitly want to include everything else in this folder diff --git a/npm/InstallController.js b/npm/InstallController.js new file mode 100755 index 0000000..fe727c4 --- /dev/null +++ b/npm/InstallController.js @@ -0,0 +1,38 @@ +#!/usr/bin/env node + +const { spawn } = require('child_process'); +const path = require('path'); +const os = require('os'); + +const platform = os.platform(); +const arch = os.arch(); + +const supported = { + 'linux': { + 'x64': 'containdb_linux_amd64' + }, + 'darwin': { + 'x64': 'containdb_darwin_amd64', + 'arm64': 'containdb_darwin_arm64' + }, + 'win32': { + 'x64': 'containdb_windows_amd64.exe' + } +}; + +if (!supported[platform] || !supported[platform][arch]) { + console.error(`Unsupported platform or architecture: ${platform} ${arch}`); + process.exit(1); +} + +const binaryName = supported[platform][arch]; +const binaryPath = path.join(__dirname, 'bin', binaryName); + +// Copy existing environment and add our custom flag +const env = { ...process.env, CONTAINDB_INSTALL_SOURCE: 'npm' }; + +const child = spawn(binaryPath, process.argv.slice(2), { stdio: 'inherit', env }); + +child.on('exit', (code) => { + process.exit(code); +}); diff --git a/npm/package.json b/npm/package.json new file mode 100644 index 0000000..37c3f45 --- /dev/null +++ b/npm/package.json @@ -0,0 +1,64 @@ +{ + "name": "containdb", + "version": "9.20.46", + "description": "The Ultimate Docker Database Manager. Automate the creation, management, and monitoring of containerized databases (MongoDB, MySQL, PostgreSQL, Redis) and their GUI tools (Compass, phpMyAdmin, PgAdmin, RedisInsight) with a simple CLI. No complex Docker commands—just productivity.", + "bin": { + "containdb": "./InstallController.js" + }, + "preferGlobal": true, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/nexoral/ContainDB.git" + }, + "homepage": "https://github.com/nexoral/ContainDB#readme", + "bugs": { + "url": "https://github.com/nexoral/ContainDB/issues" + }, + "keywords": [ + "containdb", + "docker", + "database", + "cli", + "devops", + "mongodb", + "mysql", + "postgresql", + "redis", + "mariadb", + "phpmyadmin", + "pgadmin", + "redisinsight", + "mongodb-compass", + "container-management", + "docker-compose", + "productivity", + "developer-tools", + "golang", + "cross-platform", + "automation", + "environment-setup", + "local-development" + ], + "author": "Ankan Saha", + "license": "MIT", + "funding": { + "type": "git", + "url": "https://github.com/sponsors/AnkanSaha" + }, + "os": [ + "darwin", + "linux", + "win32" + ], + "cpu": [ + "x64", + "arm64" + ], + "engines": { + "node": ">=16.0.0", + "npm": ">=8.0.0" + } +} \ No newline at end of file diff --git a/src/Core/main.go b/src/Core/main.go index c52412b..0927f3e 100644 --- a/src/Core/main.go +++ b/src/Core/main.go @@ -11,7 +11,7 @@ import ( ) func main() { - VERSION := "9.20.44-stable" + VERSION := "9.20.46-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 0363bfb..aaba3df 100644 --- a/src/base/Banner.go +++ b/src/base/Banner.go @@ -9,7 +9,7 @@ import ( "github.com/fatih/color" ) -const Version = "9.20.44-stable" +const Version = "9.20.46-stable" func ShowBanner() { // Define styles