excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / vine-server.rb
blobbf3cb640e67135d3e8c77f4e1755b558b4985430
1 cask "vine-server" do
2   version "5.3.2"
3   sha256 "9cbea2f972b235029c9d68b15004e3d401668c3a24e86d60719eed26f2cc5a71"
5   url "https://github.com/stweil/OSXvnc/releases/download/V#{version}/VineServer-#{version}.dmg"
6   name "Vine Server"
7   desc "VNC server"
8   homepage "https://github.com/stweil/OSXvnc/"
10   livecheck do
11     url :url
12     regex(/^v?(\d+(?:[._]\d+)+)$/i)
13     strategy :github_latest do |json, regex|
14       json["tag_name"]&.scan(regex)&.map { |match| match[0].tr("_", ".") }
15     end
16   end
18   depends_on macos: ">= :sierra"
20   app "Vine Server.app"
21   binary "#{appdir}/Vine Server.app/Contents/MacOS/OSXvnc-server"
22   binary "#{appdir}/Vine Server.app/Contents/MacOS/storepasswd"
23   binary "#{appdir}/Vine Server.app/Contents/MacOS/Vine Server"
25   uninstall delete: "/Library/Application Support/VineServer"
27   zap trash: "~/Library/Preferences/de.uni-mannheim.VineServer.plist"
28 end