diff --git a/Formula/crab.rb b/Formula/crab.rb index 344d65e..e8cc445 100644 --- a/Formula/crab.rb +++ b/Formula/crab.rb @@ -7,7 +7,7 @@ class Crab < Formula sha256 "fdac36fe63a0a822e44c14dbd08e7b64106317fadeb31239531491772a0b36bc" head "https://github.com/dabapps/crab.git" - depends_on "python@3" + depends_on "python@3.11" def install venv = virtualenv_create(libexec, "python3", without_pip: false) @@ -16,36 +16,12 @@ def install venv.pip_install_and_link buildpath end - def plist - <<~EOS - - - - - KeepAlive - - Label - #{plist_name} - ProgramArguments - - #{bin}/crab - router - - RunAtLoad - - WorkingDirectory - #{HOMEBREW_PREFIX} - StandardOutPath - #{var}/log/crab.log - StandardErrorPath - #{var}/log/crab.log - - - EOS - end - service do - name macos: "#{plist_name}" + run [bin/"crab", "router"] + keep_alive true + working_dir HOMEBREW_PREFIX + log_path var/"log/crab.log" + error_log_path var/"log/crab.log" end test do