Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
build-validation:
name: Build Validation
runs-on: ubuntu-latest
env:
# Keep CI aligned with the release workflow. Bun 1.3.12 has a sig_size
# calculation bug in macho.zig that truncates the LC_CODE_SIGNATURE blob
# on cross-compiled Darwin binaries (oven-sh/bun#29120). macOS kills the
# resulting unsigned binaries on launch. Unpin once a Bun release includes
# the upstream fix (oven-sh/bun#29122).
CLI_BUN_VERSION: "1.3.11"

steps:
- name: Checkout repository
Expand All @@ -28,7 +35,7 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
bun-version: ${{ env.CLI_BUN_VERSION }}

- name: Install Node dependencies
run: npm ci
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ permissions:
jobs:
build-and-publish:
runs-on: ubuntu-latest
env:
# Bun 1.3.12 has a sig_size calculation bug in macho.zig that truncates the
# LC_CODE_SIGNATURE blob on cross-compiled Darwin binaries, so macOS kills
# them on launch (oven-sh/bun#29120). Unpin once a Bun release includes the
# upstream fix (oven-sh/bun#29122).
CLI_BUN_VERSION: '1.3.11'
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version: ${{ env.CLI_BUN_VERSION }}

- name: Setup binfmt with QEMU
run: |
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## 18.2.0

* Added source code and entrypoint validation before local function execution
* Added macOS code signature verification for standalone binary installs
* Added `webhooks` to the list of supported resource types
* Updated Open Runtimes version from v4 to v5
* Updated runtime start commands from `sh` to `bash` for improved compatibility
* Updated project init flow with contextual next steps and improved prompts
* Fixed Docker process error handling to report exit codes and signals
* Fixed function container startup to detect early exits before port open
* Fixed stderr output in Docker start to write to stderr instead of stdout

## 18.1.0

* Added site screenshot terminal preview after `push site` deployments
Expand Down
2 changes: 1 addition & 1 deletion Formula/appwrite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Appwrite < Formula
desc "Command-line tool for interacting with the Appwrite API"
homepage "https://appwrite.io"
license "BSD-3-Clause"
version "18.1.0"
version "18.2.0"

def self.binary_arch
Hardware::CPU.arm? ? "arm64" : "x64"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using

```sh
$ appwrite -v
18.1.0
18.2.0
```

### Install using prebuilt binaries
Expand Down Expand Up @@ -62,7 +62,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
18.1.0
18.2.0
```

## Getting Started
Expand Down
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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/18.1.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.1.0/appwrite-cli-win-arm64.exe"
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.2.0/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.2.0/appwrite-cli-win-arm64.exe"

$APPWRITE_BINARY_NAME = "appwrite.exe"

Expand Down
25 changes: 23 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,29 @@ printSuccess() {
printf "${GREEN}✅ Done ... ${NC}\n\n"
}

verifyMacOSCodeSignature() {
if [ "$OS" != "darwin" ]; then
return
fi

if ! command -v codesign >/dev/null 2>&1; then
return
fi

printf "${GREEN}🔏 Verifying macOS code signature ${NC}\n"
if ! codesign -dv $APPWRITE_TEMP_NAME >/dev/null 2>&1; then
printf "${RED}❌ Downloaded macOS binary is missing an embedded code signature. macOS will kill it on launch. ${NC}\n"
printf "${RED}❌ Please retry once the release artifact is refreshed, or use Homebrew/npm as a temporary workaround. ${NC}\n"
rm -f $APPWRITE_TEMP_NAME
exit 1
fi
printSuccess
}

downloadBinary() {
echo "[2/4] Downloading executable for $OS ($ARCH) ..."

GITHUB_LATEST_VERSION="18.1.0"
GITHUB_LATEST_VERSION="18.2.0"
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"

Expand All @@ -121,6 +140,8 @@ install() {
fi
printSuccess

verifyMacOSCodeSignature

printf "${GREEN}📝 Copying temporary file to $APPWRITE_EXECUTABLE_FILEPATH ... ${NC}\n"
runAsRoot cp $APPWRITE_TEMP_NAME $APPWRITE_EXECUTABLE_FILEPATH
if [ $? -ne 0 ]; then
Expand Down Expand Up @@ -153,4 +174,4 @@ greeting
getSystemInfo
downloadBinary
install
installCompleted
installCompleted
Loading
Loading