Skip to content

coder 2.1.4 #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
use version
  • Loading branch information
aslilac committed Aug 29, 2023
commit ccbae36210d6d7c91a08643a2be29cae01f595e3
32 changes: 0 additions & 32 deletions .github/workflows/test.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions Formula/coder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ class Coder < Formula

if OS.mac?
if Hardware::CPU.arm?
url "https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_darwin_arm64.zip"
url "https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_darwin_arm64.zip"
sha256 "ac67c032e81fed7ef3b2e1fc5bfafb878e7551c081d0a136f5a88583c279c060"
else
url "https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_darwin_amd64.zip"
url "https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_darwin_amd64.zip"
sha256 "693d6c450891627d879123ea9a08dc5917dafee7de6c639c5c9b496abe6f250b"
end
else
url "https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_linux_amd64.tar.gz"
url "https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_linux_amd64.tar.gz"
sha256 "41666bbe3afacd153fbe6c1a2d908bb4fb7a88e821205cb7136a0bad2d1cd6dc"
end

def install
bin.install "coder"
end

test do
version_output = shell_output("#{bin}/coder version")
assert_match version.to_s, version_output
Expand Down
11 changes: 9 additions & 2 deletions Formula/coder@1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ class CoderAT1 < Formula
version "1.44.0"

if OS.mac?
url "https://github.com/coder/coder-v1-cli/releases/download/v1.44.0/coder-cli-darwin-amd64.zip"
url "https://github.com/coder/coder-v1-cli/releases/download/v#{version}/coder-cli-darwin-amd64.zip"
sha256 "f3fe13cec4d0615a40134675279d4cd1a5a871356d90dedef020981622f1b693" # mac
else
url "https://github.com/coder/coder-v1-cli/releases/download/v1.44.0/coder-cli-linux-amd64.tar.gz"
url "https://github.com/coder/coder-v1-cli/releases/download/v#{version}/coder-cli-linux-amd64.tar.gz"
sha256 "642320e709a8585ae732e3b31d5945a09cd2a7d63121d7121c34ebc5740d3fc9" # linux
end

keg_only :versioned_formula

def version_suffix
version.major.to_s
end

def install
bin.install "coder"
end

test do
system "#{bin}/coder", "--version"
end
Expand Down