-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add Homebrew formula to install on macOS #87
Comments
I don't have any experience with Homebrew, so it would be great if you're interested in working on that. As I mentioned in #7, I'm happy to add something to our CD if it's helpful. |
I am busy until the end of the month (🥲) but after that I would gladly look into it! |
Hi @max-niederman, I carved out some time to test out. Turns out, it is pretty straightforward, and I can install Create a custom formulaHere's what I went through as macOS user:
The URL is the url of the latest version of ttyper that I got from ttyper tags page Command
Ruby formulaAlso available online here. class Ttyper < Formula
desc "Terminal-based typing test"
homepage "https://github.com/max-niederman/ttyper"
url "https://github.com/max-niederman/ttyper/archive/refs/tags/v1.2.2.tar.gz"
sha256 "de168b56dfe71ac24c91c012b2c6bbd30fa5102a15dae53a8566ec2930c6b10e"
license "MIT"
head "https://github.com/max-niederman/ttyper", branch: "main"
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
assert_equal "ttyper #{version}", shell_output(bin/"ttyper --version").chomp
end
end A couple of notes:
Of course I never wrote a line of ruby before. Turns out, Once you have completions and stuff, I guess you can add them below the Problems
|
Technically we could also write a GH Action workflow to run |
Hello! I don't have a lot of experience with that, but it would be great to distribute ttyper through homebrew as well. If you are interested, I can volunteer to help out.
The text was updated successfully, but these errors were encountered: