excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / synology-image-assistant.rb
blobdef4082ebb7421f10db5c465814ed3ebfc2ceea1
1 cask "synology-image-assistant" do
2   arch arm: "arm64", intel: "x64"
4   version "1.0.0-43"
5   sha256 arm:   "322ba03618fff941ce4af008de124523cdfc604b1beb4bfaafdce6efbd636da3",
6          intel: "07cf27ff568dc30c3be6ecc74116fc71ed479fd7499d53a7840cb56ef29b055e"
8   url "https://global.download.synology.com/download/Utility/SynologyImageAssistant/#{version}/Mac/SynologyImageAssistant-#{version}-#{arch}.pkg"
9   name "Synology Image Assistant"
10   desc "Assistant to generate image previews of formats like HEIC and HEVC"
11   homepage "https://www.synology.com/"
13   livecheck do
14     url "https://utyupdate.synology.com/electron/SynologyImageAssistant/latest-mac.yml"
15     strategy :electron_builder
16   end
18   pkg "SynologyImageAssistant-#{version}-#{arch}.pkg"
20   uninstall launchctl: "com.synology.Photos",
21             quit:      "com.synology.Photos",
22             pkgutil:   "com.synology.Photos",
23             delete:    "/Applications/Synology Image Assistant.app"
25   zap trash: [
26     "~/Library/Application Scripts/Synology/SynologyImageAssistantStartup.*",
27     "~/Library/Application Scripts/Synology/SynologyImageAssistantUninstaller.*",
28     "~/Library/Application Support/Synology Image Assistant",
29   ]
30 end