excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / l / luniistore.rb
blob8f62c147d9ce2fb33decf406963c8ece8147f19b
1 cask "luniistore" do
2   arch arm: "arm64", intel: "i386"
4   version "2.6.312"
5   sha256 arm:   "922603785e55f11dda4776af851763f20d579f6bb1c8ac4b6ef83e2506555490",
6          intel: "f235a1bac95b76488fcb6582ca86208a796e4467c69e9224ef0db6aefbb2714f"
8   url "https://storage.googleapis.com/storage.lunii.fr/public/deploy/installers/macos/#{arch}/Luniistore-#{version}-#{arch}.pkg",
9       verified: "storage.googleapis.com/storage.lunii.fr/"
10   name "Luniistore"
11   desc "Utility for My Fabulous Storyteller"
12   homepage "https://lunii.com/"
14   livecheck do
15     url "https://downloads.lunii.com/v1/luniistore-installers/ln-ins-default-mac-os"
16     strategy :header_match
17   end
19   auto_updates true
21   pkg "Luniistore-#{version}-#{arch}.pkg"
23   postflight do
24     # The postinstall script automatically opens the app. Therefore, we must
25     # suppress this behavior to make the cask installation non-interactive.
26     retries ||= 3
27     ohai "The Luniistore package postinstall script launches the app" if retries >= 3
28     ohai "Attempting to close Luniistore to avoid unwanted user intervention" if retries >= 3
29     return unless system_command "/usr/bin/pkill", args: ["-f", "/Applications/Luniistore.app"]
30   end
32   uninstall quit:    "com.lunii.luniistore",
33             pkgutil: "com.lunii.luniistore"
35   zap trash: [
36     "~/Desktop/Luniistore",
37     "~/Library/Application Support/Luniitheque",
38     "~/Library/Saved Application State/com.lunii.luniistore.savedState",
39     "~/Luniistore",
40   ]
41 end