class Dominevo < Formula desc "Self-hosted camera platform with distributed agent pipeline" homepage "https://github.com/dominevo/dominevo-server" license "MIT" version "0.2.0" on_macos do on_arm do url "https://github.com/dominevo/dominevo-server/releases/download/v#{version}/dominevo-v#{version}-darwin-arm64.tar.gz" sha256 "PLACEHOLDER" end end on_linux do on_intel do url "https://github.com/dominevo/dominevo-server/releases/download/v#{version}/dominevo-v#{version}-linux-x64.tar.gz" sha256 "PLACEHOLDER" end end def install libexec.install Dir["*"] bin.install_symlink libexec/"bin/dominevo" end def caveats <<~EOS Quick start: # Start as hub (full server) dominevo serve # Start as agent (worker node) dominevo agent --hub --token # Check dependencies dominevo setup For ML detection, install Python 3.10+ with your preferred runtime. For video decode/transcode, install ffmpeg: brew install ffmpeg EOS end service do run [opt_bin/"dominevo", "serve"] keep_alive true log_path var/"log/dominevo.log" error_log_path var/"log/dominevo-error.log" working_dir var/"lib/dominevo" end test do assert_match version.to_s, shell_output("#{bin}/dominevo --version") end end