-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathformula.rb
More file actions
25 lines (21 loc) · 757 Bytes
/
formula.rb
File metadata and controls
25 lines (21 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# typed: false
# frozen_string_literal: true
class DotfilesCli < Formula
desc "CLI utility for managing a remote dotfiles repository"
homepage "https://github.com/ZachiNachshon/dotfiles-cli"
version "0.6.0"
url "https://github.com/ZachiNachshon/dotfiles-cli/releases/download/v0.6.0/dotfiles-cli.tar.gz"
sha256 "f4b5839ba9b048219951b2a3d97549bfb1cc238fe7a4905f6d40854a13403e5b"
license "MIT"
depends_on "git"
def install
# Add extracted files to the Homebrew install directory
libexec.install Dir["*"]
libexec.install Dir[".git-deps"]
# Add a relative symlink from Homebrew libexec to bin folder
bin.install_symlink libexec/"dotfiles.sh" => "dotfiles"
end
test do
system "#{bin}/dotfiles version"
end
end