Skip to content

Commit

Permalink
fix: update formula
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola committed Dec 18, 2024
1 parent 3bb694e commit 1cece76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 36 deletions.
23 changes: 13 additions & 10 deletions dify.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
class Dify < Formula
desc "Dify Plugin Command Line Tool"
desc "Dify"
homepage "https://github.com/langgenius/dify-plugin-daemon"
version "0.1.0"
license "MIT"
version "0.0.1-beta.19"

if OS.mac?
if Hardware::CPU.intel?
url "file://#{__dir__}/bin/dify-plugin-darwin-amd64.tar.gz"
sha256 "39ab1029634acf1caa8e68efcc393162a0fc760170472071b5fc02d06b084993"
else
url "file://#{__dir__}/bin/dify-plugin-darwin-arm64.tar.gz"
sha256 "467cd4d13a7be4d1583589da4cf6b39e3b72b2fe4a02b6bc59c2c36309459a4b"
url "https://github.com/langgenius/dify-plugin-daemon/releases/download/0.0.1-beta.19/dify-plugin-darwin-amd64"
elsif Hardware::CPU.arm?
url "https://github.com/langgenius/dify-plugin-daemon/releases/download/0.0.1-beta.19/dify-plugin-darwin-arm64"
end
else
odie "This formula only supports macOS."
elsif OS.linux?
if Hardware::CPU.intel?
url "https://github.com/langgenius/dify-plugin-daemon/releases/download/0.0.1-beta.19/dify-plugin-linux-amd64"
elsif Hardware::CPU.arm?
url "https://github.com/langgenius/dify-plugin-daemon/releases/download/0.0.1-beta.19/dify-plugin-linux-arm64"
end
elsif OS.windows?
url "https://github.com/langgenius/dify-plugin-daemon/releases/download/0.0.1-beta.19/dify-plugin-windows-amd64"
end

def install
Expand Down
26 changes: 0 additions & 26 deletions dify.rb.template

This file was deleted.

0 comments on commit 1cece76

Please sign in to comment.