File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,16 +4,35 @@ class TermNotes < Formula
44 url "https://github.com/felipealfonsog/TermNotes/archive/refs/tags/v.1.0.1.tar.gz"
55 sha256 "43db1b333d8902b15df4444d12e76c6d80fa9535cb377f7594d3cfa19c64e869"
66 license "MIT"
7- depends_on "gcc" => :build
7+
8+ depends_on "gcc"
89 depends_on "vim"
910 depends_on "nano"
1011
1112 def install
12- system "./setup"
13- bin . install "term_notes"
13+ if OS . mac?
14+ bin . install "term_notes" => "term-notes"
15+ else
16+ bin . install "term_notes"
17+ end
18+ end
19+
20+ def caveats
21+ <<~EOS
22+ 'Term Notes' has been installed!
23+
24+ On Mac OS, you can run the program using 'term-notes'.
25+
26+ On Linux, you may need to create a symbolic link to make it accessible globally.
27+ Run the following command:
28+
29+ sudo ln -s #{ opt_bin } /term_notes /usr/local/bin/term-notes
30+
31+ Enjoy taking notes with 'Term Notes'!
32+ EOS
1433 end
1534
1635 test do
17- # Add some test cases here
36+ # Add your test logic here
1837 end
1938end
You can’t perform that action at this time.
0 commit comments