Skip to content

Commit

Permalink
Updating algokit to 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 20, 2024
1 parent c40c090 commit 4b284b7
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions Casks/algokit.rb
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
# typed: false
# frozen_string_literal: true

cask "algokit" do
version "2.3.0"
sha256 "d91ae981080e3e44d389dd113bc1a2dccd7e01898c4b5fa2a284dcc8569609a6"
arch arm: "arm64", intel: "x64"

Check failure on line 3 in Casks/algokit.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Cask/StanzaGrouping: stanza groups should be separated by a single empty line

Check failure on line 3 in Casks/algokit.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/TrailingWhitespace: Trailing whitespace detected.
version "2.4.1"
sha256 arm: "02adbda5a7b4fce3fadba1e70c29c21a2b922a39ad571e622d0a566b2cda010b",
intel: "3616e742b651b8b94f4caabe36bdd255982482db73005cfa95bf3b8d509d9448"

url "https://github.com/algorandfoundation/algokit-cli/releases/download/v#{version}/algokit-#{version}-py3-none-any.whl"
url "https://github.com/algorandfoundation/algokit-cli/releases/download/v#{version}/algokit-#{version}-macos_#{arch}.tar.gz"
name "algokit"
desc "Algorand development kit command-line interface"
homepage "https://github.com/algorandfoundation/algokit-cli"

depends_on formula: "pipx"
container type: :naked
binary "#{staged_path}/#{token}"

installer script: {
executable: "pipx",
args: ["install", "--force", "#{staged_path}/algokit-#{version}-py3-none-any.whl"],
print_stderr: false,
}
installer script: {
executable: "pipx",
args: ["ensurepath"],
}
installer script: {
executable: "bash",
args: ["-c", "echo $(which pipx) uninstall algokit >#{staged_path}/uninstall.sh"],
}
postflight do
set_permissions "#{staged_path}/#{token}", "0755"
end

uninstall script: {
executable: "bash",
args: ["#{staged_path}/uninstall.sh"],
}
uninstall delete: "/usr/local/bin/#{token}"
end

0 comments on commit 4b284b7

Please sign in to comment.