Skip to content

Commit 8ae5ff9

Browse files
authored
feat: SDK update for version 18.2.0 (#300)
* feat: SDK update for version 18.2.0 * chore: restore Homebrew formula SHA256 hashes from previous release
1 parent e3d5a21 commit 8ae5ff9

18 files changed

Lines changed: 568 additions & 137 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
build-validation:
1616
name: Build Validation
1717
runs-on: ubuntu-latest
18+
env:
19+
# Keep CI aligned with the release workflow. Bun 1.3.12 has a sig_size
20+
# calculation bug in macho.zig that truncates the LC_CODE_SIGNATURE blob
21+
# on cross-compiled Darwin binaries (oven-sh/bun#29120). macOS kills the
22+
# resulting unsigned binaries on launch. Unpin once a Bun release includes
23+
# the upstream fix (oven-sh/bun#29122).
24+
CLI_BUN_VERSION: "1.3.11"
1825

1926
steps:
2027
- name: Checkout repository
@@ -28,7 +35,7 @@ jobs:
2835
- name: Setup Bun
2936
uses: oven-sh/setup-bun@v2
3037
with:
31-
bun-version: "latest"
38+
bun-version: ${{ env.CLI_BUN_VERSION }}
3239

3340
- name: Install Node dependencies
3441
run: npm ci

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ permissions:
1111
jobs:
1212
build-and-publish:
1313
runs-on: ubuntu-latest
14+
env:
15+
# Bun 1.3.12 has a sig_size calculation bug in macho.zig that truncates the
16+
# LC_CODE_SIGNATURE blob on cross-compiled Darwin binaries, so macOS kills
17+
# them on launch (oven-sh/bun#29120). Unpin once a Bun release includes the
18+
# upstream fix (oven-sh/bun#29122).
19+
CLI_BUN_VERSION: '1.3.11'
1420
steps:
1521
- uses: actions/checkout@v4
1622
with:
1723
token: ${{ secrets.GH_TOKEN }}
1824
- uses: oven-sh/setup-bun@v2
1925
with:
20-
bun-version: latest
26+
bun-version: ${{ env.CLI_BUN_VERSION }}
2127

2228
- name: Setup binfmt with QEMU
2329
run: |

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change Log
22

3+
## 18.2.0
4+
5+
* Added source code and entrypoint validation before local function execution
6+
* Added macOS code signature verification for standalone binary installs
7+
* Added `webhooks` to the list of supported resource types
8+
* Updated Open Runtimes version from v4 to v5
9+
* Updated runtime start commands from `sh` to `bash` for improved compatibility
10+
* Updated project init flow with contextual next steps and improved prompts
11+
* Fixed Docker process error handling to report exit codes and signals
12+
* Fixed function container startup to detect early exits before port open
13+
* Fixed stderr output in Docker start to write to stderr instead of stdout
14+
315
## 18.1.0
416

517
* Added site screenshot terminal preview after `push site` deployments

Formula/appwrite.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Appwrite < Formula
22
desc "Command-line tool for interacting with the Appwrite API"
33
homepage "https://appwrite.io"
44
license "BSD-3-Clause"
5-
version "18.1.0"
5+
version "18.2.0"
66

77
def self.binary_arch
88
Hardware::CPU.arm? ? "arm64" : "x64"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
18.1.0
32+
18.2.0
3333
```
3434

3535
### Install using prebuilt binaries
@@ -62,7 +62,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6262
Once the installation completes, you can verify your install using
6363
```
6464
$ appwrite -v
65-
18.1.0
65+
18.2.0
6666
```
6767

6868
## Getting Started

install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

1515
# REPO
16-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.1.0/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.1.0/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.2.0/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/18.2.0/appwrite-cli-win-arm64.exe"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,29 @@ printSuccess() {
9393
printf "${GREEN}✅ Done ... ${NC}\n\n"
9494
}
9595

96+
verifyMacOSCodeSignature() {
97+
if [ "$OS" != "darwin" ]; then
98+
return
99+
fi
100+
101+
if ! command -v codesign >/dev/null 2>&1; then
102+
return
103+
fi
104+
105+
printf "${GREEN}🔏 Verifying macOS code signature ${NC}\n"
106+
if ! codesign -dv $APPWRITE_TEMP_NAME >/dev/null 2>&1; then
107+
printf "${RED}❌ Downloaded macOS binary is missing an embedded code signature. macOS will kill it on launch. ${NC}\n"
108+
printf "${RED}❌ Please retry once the release artifact is refreshed, or use Homebrew/npm as a temporary workaround. ${NC}\n"
109+
rm -f $APPWRITE_TEMP_NAME
110+
exit 1
111+
fi
112+
printSuccess
113+
}
114+
96115
downloadBinary() {
97116
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
98117

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

@@ -121,6 +140,8 @@ install() {
121140
fi
122141
printSuccess
123142

143+
verifyMacOSCodeSignature
144+
124145
printf "${GREEN}📝 Copying temporary file to $APPWRITE_EXECUTABLE_FILEPATH ... ${NC}\n"
125146
runAsRoot cp $APPWRITE_TEMP_NAME $APPWRITE_EXECUTABLE_FILEPATH
126147
if [ $? -ne 0 ]; then
@@ -153,4 +174,4 @@ greeting
153174
getSystemInfo
154175
downloadBinary
155176
install
156-
installCompleted
177+
installCompleted

0 commit comments

Comments
 (0)