Skip to content

Commit 6d9ef37

Browse files
author
dikakoko
committed
Add function for install ruby
1 parent 2299057 commit 6d9ef37

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

Formula/get_app.rb

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
class GetApp < Formula
2-
desc "render a random joke about Chuck Norris"
2+
desc "Get app from app store connect"
33
homepage "https://github.com/dikako/homebrew-app-store-connect"
44
version "1.0.0"
55

6-
url "https://github.com/dikako/homebrew-app-store-connect/archive/refs/tags/1.1.zip", :using => :curl
6+
url "https://github.com/dikako/homebrew-app-store-connect/archive/refs/tags/1.2.zip", :using => :curl
77

88
def install
9+
# Install rbenv
10+
system "brew", "install", "rbenv"
11+
12+
# Set up rbenv
13+
system "rbenv", "init", "-"
14+
15+
# Install a specific version of Ruby using rbenv
16+
system "rbenv", "install", "3.0.0" # Replace with the desired Ruby version
17+
18+
# Set the global Ruby version
19+
system "rbenv", "global", "3.0.0" # Make sure to use the same Ruby version as above
20+
21+
# Install a required gem using the system's Ruby
22+
system "gem", "install", "bundler"
23+
24+
# Install dependencies
25+
system "bundle", "install"
26+
927
bin.install "bin/get_app"
1028
end
1129
end

0 commit comments

Comments
 (0)