-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtart.rb
35 lines (27 loc) · 1.17 KB
/
tart.rb
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
26
27
28
29
30
31
32
33
34
35
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Tart < Formula
desc "Run macOS and Linux VMs on Apple Hardware"
homepage "https://github.com/cirruslabs/tart"
version "2.25.0"
license "Fair Source"
depends_on "cirruslabs/cli/softnet"
depends_on :macos
url "https://github.com/cirruslabs/tart/releases/download/2.25.0/tart.tar.gz"
sha256 "3b69dee5c491538547e79043e099fff5981c76cf8e4fea39b50b8ab46ff33d4f"
def install
libexec.install Dir["*"]
bin.write_exec_script "#{libexec}/tart.app/Contents/MacOS/tart"
generate_completions_from_executable(libexec/"tart.app/Contents/MacOS/tart", "--generate-completion-script")
end
depends_on :macos => :ventura
def caveats
<<~EOS
Tart has been installed. You might want to reduce the default DHCP lease time
from 86,400 to 600 seconds to avoid DHCP shortage when running lots of VMs daily:
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.InternetSharing.default.plist bootpd -dict DHCPLeaseTimeSecs -int 600
See https://tart.run/faq/#changing-the-default-dhcp-lease-time for more details.
EOS
end
end