Skip to content

Commit

Permalink
packaging: publish homebrew tap
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Jun 13, 2024
1 parent 7cbeb50 commit 15c0d50
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Environment variables:
- [ ] Integration tests for supported emulators/multiplexers.
- [ ] Optional removal of a failed command from history.
- Packaging
- [ ] Homebrew
- [x] Homebrew
- [ ] AUR
- [ ] deb
- [ ] rpm
Expand Down
30 changes: 30 additions & 0 deletions packaging/homebrew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

cat > Formula/fixit.rb <<EOF
class Fixit < Formula
desc "A utility to fix mistakes in your commands."
homepage "https://github.com/eugene-babichenko/fixit"
version "$1"
on_macos do
on_arm do
url "https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-aarch64-apple-darwin.tar.gz"
sha256 "$(wget -O - https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-aarch64-apple-darwin.sha256)"
end
on_intel do
url "https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-apple-darwin.tar.gz"
sha256 "$(wget -O - https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-apple-darwin.sha256)"
end
end
on_linux do
on_intel do
url "https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-unknown-linux-musl.tar.gz"
sha256 "$(wget -O - https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-unknown-linux-musl.sha256)"
end
end
def install
bin.install "fixit"
end
end
EOF

0 comments on commit 15c0d50

Please sign in to comment.