espanso/packager/mac/espanso.rb

22 lines
705 B
Ruby
Raw Normal View History

2019-09-18 09:10:36 +00:00
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Espanso < Formula
desc "{{{app_desc}}}"
homepage "{{{app_url}}}"
url "https://github.com/federico-terzi/espanso/releases/download/v{{{app_version}}}/espanso-mac.tar.gz"
2019-09-18 09:10:36 +00:00
sha256 "{{{release_hash}}}"
version "{{{app_version}}}"
2020-08-16 17:06:19 +00:00
resource "modulo" do
url "https://github.com/federico-terzi/modulo/releases/download/v{{{modulo_version}}}/modulo-mac"
sha256 "{{{modulo_sha}}}"
end
2019-09-18 09:10:36 +00:00
def install
bin.install "espanso"
2020-08-16 17:06:19 +00:00
resource("modulo").stage { bin.install "modulo-mac" => "modulo" }
end
end