Skip to content
Merged
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
16 changes: 9 additions & 7 deletions Formula/appwrite.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Appwrite < Formula
desc "Command-line tool for interacting with the Appwrite API"
homepage "https://appwrite.io"
version "19.1.0"
version "19.2.0"
license "BSD-3-Clause"

def self.binary_arch
Expand Down Expand Up @@ -34,35 +34,37 @@
on_macos do
if Hardware::CPU.arm?
url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-darwin-arm64"
sha256 "a1115208e383643f0fcb9a05efa10faf15524bbab78f6653774706f7820a3b38"
sha256 "dcbf03b4b5269ad783ea73ca389ed219cf43d8b627df2fdfd3012ce93706b49e"
else
url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-darwin-x64"
sha256 "37ee53a6dc65a3c75bc7c237d3617ed8f2b4668ddffb0e8c254532daa9ccdd6a"
sha256 "b0a66063a2f34dd2b5c19dcb8b6914eeb0bd37cb5fe5395be24a065f7722cd72"
end
end

on_linux do
if Hardware::CPU.arm?
url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-linux-arm64"
sha256 "a013e833588a7b6951b1a706580fd7406bcecf661682d97d9afab11b61b346f8"
sha256 "9f5b0447c51fdd686673307e01daeeb78d2263724bcdfe5ff51e3f14adb82ab1"
else
url "https://github.com/appwrite/sdk-for-cli/releases/download/#{version}/appwrite-cli-linux-x64"
sha256 "7782550ebd38483c2bded1201bc1d79fcac85535eebb2458e3c62ab3fd5a8f00"
sha256 "2e9f4c101b443ebb94c993fb7fdd12f4473bd85177fae31635ae53f114b15891"
end
end

def install

Check warning on line 54 in Formula/appwrite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-latest)

`brew install --verbose --formula --build-bottle appwrite/appwrite/appwrite` failed on macOS Sequoia (15) on Apple Silicon!

::error::Failure while executing; `\{\"SHELL\"\ =\>\ \"bash\"\} /opt/homebrew/Cellar/appwrite/19.2.0/bin/appwrite completion bash` exited with 1. Here's the output:%0A

Check warning on line 54 in Formula/appwrite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

`brew install --verbose --formula --build-bottle appwrite/appwrite/appwrite` failed on Linux x86_64!

::error::Failure while executing; `\{\"SHELL\"\ =\>\ \"bash\"\} /home/linuxbrew/.linuxbrew/Cellar/appwrite/19.2.0/bin/appwrite completion bash` exited with 1. Here's the output:%0A
if build.head?
system "bun", "install", "--frozen-lockfile"
system "bun", "run", self.class.build_target
bin.install "build/#{self.class.binary_name}" => "appwrite"
return
else
bin.install self.class.binary_name => "appwrite"
end

bin.install self.class.binary_name => "appwrite"
generate_completions_from_executable(bin/"appwrite", "completion")
end

test do
assert_match "Usage:", shell_output("#{bin}/appwrite --help")
assert_match "compdef", shell_output("#{bin}/appwrite completion zsh")
end
end
Loading