From cc0c86cdb25d6caa5dd7211c85b3bd3884c98040 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 24 Jun 2026 11:56:43 +0530 Subject: [PATCH] chore: update Command Line SDK to 22.2.2 --- .github/workflows/publish.yml | 16 ++++++++++++++-- CHANGELOG.md | 4 ++++ README.md | 4 ++-- install.ps1 | 4 ++-- install.sh | 2 +- lib/constants.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- scoop/appwrite.config.json | 6 +++--- 9 files changed, 30 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7d3b91a1..1213c508 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,9 +43,21 @@ jobs: sudo make sudo make install - - name: Install dependencies and build for Linux and Windows + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Fetch keyring native bindings for all targets + run: | + version="$(bun -e 'console.log(require("@napi-rs/keyring/package.json").version)')" + for triple in darwin-arm64 darwin-x64 linux-x64-gnu linux-arm64-gnu win32-x64-msvc win32-arm64-msvc; do + dir="node_modules/@napi-rs/keyring-$triple" + [ -d "$dir" ] && continue + mkdir -p "$dir" + curl -fsSL "https://registry.npmjs.org/@napi-rs/keyring-$triple/-/keyring-$triple-$version.tgz" | tar -xz -C "$dir" --strip-components=1 + done + + - name: Build for Linux and Windows run: | - bun install --frozen-lockfile bun run linux-x64 bun run linux-arm64 bun run mac-x64 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ee969e5..5443bd21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 22.2.2 + +* Fixed: Release binaries now embed `@napi-rs/keyring` native bindings for all targets + ## 22.2.1 * Fixed: Compiled binaries no longer crash from `@napi-rs/keyring` native bindings diff --git a/README.md b/README.md index ab904e88..67905eb9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using ```sh $ appwrite -v -22.2.1 +22.2.2 ``` ### Install using prebuilt binaries @@ -83,7 +83,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc Once the installation completes, you can verify your install using ``` $ appwrite -v -22.2.1 +22.2.2 ``` ## Getting Started diff --git a/install.ps1 b/install.ps1 index c277304d..fe8a6f41 100644 --- a/install.ps1 +++ b/install.ps1 @@ -13,8 +13,8 @@ # You can use "View source" of this page to see the full script. # REPO -$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.1/appwrite-cli-win-x64.exe" -$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.1/appwrite-cli-win-arm64.exe" +$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.2/appwrite-cli-win-x64.exe" +$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.2/appwrite-cli-win-arm64.exe" $APPWRITE_BINARY_NAME = "appwrite.exe" diff --git a/install.sh b/install.sh index 07965834..7f535eb6 100644 --- a/install.sh +++ b/install.sh @@ -120,7 +120,7 @@ verifyMacOSCodeSignature() { downloadBinary() { echo "[2/5] Downloading executable for $OS ($ARCH) ..." - GITHUB_LATEST_VERSION="22.2.1" + GITHUB_LATEST_VERSION="22.2.2" GITHUB_FILE="appwrite-cli-${OS}-${ARCH}" GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE" diff --git a/lib/constants.ts b/lib/constants.ts index e500cb28..3a2833f5 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -1,7 +1,7 @@ // SDK export const SDK_TITLE = 'Appwrite'; export const SDK_TITLE_LOWER = 'appwrite'; -export const SDK_VERSION = '22.2.1'; +export const SDK_VERSION = '22.2.2'; export const SDK_NAME = 'Command Line'; export const SDK_PLATFORM = 'console'; export const SDK_LANGUAGE = 'cli'; diff --git a/package-lock.json b/package-lock.json index 61ee8e02..601b3f50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "appwrite-cli", - "version": "22.2.1", + "version": "22.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "appwrite-cli", - "version": "22.2.1", + "version": "22.2.2", "license": "BSD-3-Clause", "dependencies": { "@appwrite.io/console": "^15.1.1", diff --git a/package.json b/package.json index 7aaa3d9e..5506c55a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API", - "version": "22.2.1", + "version": "22.2.2", "license": "BSD-3-Clause", "main": "dist/index.cjs", "module": "dist/index.js", diff --git a/scoop/appwrite.config.json b/scoop/appwrite.config.json index 968f72a9..8352a9dc 100644 --- a/scoop/appwrite.config.json +++ b/scoop/appwrite.config.json @@ -1,12 +1,12 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "22.2.1", + "version": "22.2.2", "description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.", "homepage": "https://github.com/appwrite/sdk-for-cli", "license": "BSD-3-Clause", "architecture": { "64bit": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.1/appwrite-cli-win-x64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.2/appwrite-cli-win-x64.exe", "bin": [ [ "appwrite-cli-win-x64.exe", @@ -15,7 +15,7 @@ ] }, "arm64": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.1/appwrite-cli-win-arm64.exe", + "url": "https://github.com/appwrite/sdk-for-cli/releases/download/22.2.2/appwrite-cli-win-arm64.exe", "bin": [ [ "appwrite-cli-win-arm64.exe",