Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogram 2.3.1 (new cask) #201161

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Casks/a/autogram.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
cask "autogram" do
version "2.3.1"
sha256 "c2e444180ef3e38bfab79e97c3f578c867d09189de0ef867a42b0e9d25ade3c0"

url "https://github.com/slovensko-digital/autogram/releases/download/v#{version}/Autogram-#{version}-MacOs.pkg",
verified: "github.com/slovensko-digital/autogram/"
name "autogram"
desc "Application for electronic signing of signatures"
homepage "https://sluzby.slovensko.digital/autogram/"

livecheck do
url :url
strategy :github_latest
end

pkg "Autogram-#{version}-MacOs.pkg"

# Following 'preflight' is needed to avoid interactive parts of the instalation process. More details in https://github.com/Homebrew/homebrew-cask/pull/201161#discussion_r1950819869
preflight do
FileUtils.mkdir_p "#{Dir.home}/Library/Application Support/Autogram/tls/"
FileUtils.touch "#{Dir.home}/Library/Application Support/Autogram/tls/skip"
end

uninstall quit: "digital.slovensko.autogram",
pkgutil: "digital.slovensko.autogram"

zap trash: [
"~/Library/Application Support/Autogram",
"~/Library/Preferences/digital.slovensko.autogram.plist",
"~/Library/Saved Application State/digital.slovensko.autogram.savedState",
]

caveats do
license "https://github.com/slovensko-digital/autogram/blob/main/LICENSE"
end
end