Files
homebrew-meshexec/Formula/meshexec.rb

25 lines
1.1 KiB
Ruby

# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
class MeshExec < Formula
desc "Manage remote devices over the Meshtastic mesh. Define command aliases, execute them remotely via private channels, and get output back in chunks"
homepage "https://github.com/Dark-Alex-17/meshexec"
if OS.mac? and Hardware::CPU.arm?
url "https://github.com/Dark-Alex-17/meshexec/releases/download/v0.1.0/meshexec-macos-arm64.tar.gz"
sha256 "82b997f1d5ad622a6f17aa6043a365b3de3804b1172689f13714040a37e0342e"
elsif OS.mac? and Hardware::CPU.intel?
url "https://github.com/Dark-Alex-17/meshexec/releases/download/v0.1.0/meshexec-macos.tar.gz"
sha256 "af574cceb5b630f201fcf61afe8bbf740747aa6dd8ea7802ac4139389bf3c8b3"
else
url "https://github.com/Dark-Alex-17/meshexec/releases/download/v0.1.0/meshexec-linux-musl.tar.gz"
sha256 "4e3dbf267cc0a388e7f85089931582617c88dd9122d4b2844f3625ddede9bc2d"
end
version "0.1.0"
license "MIT"
def install
bin.install "meshexec"
ohai "You're done! Run with \"meshexec serve\""
ohai "For runtime flags, see \"meshexec --help\""
end
end