From bc7d90de73ef41128c0ff1a7087d7a9e2291b5ee Mon Sep 17 00:00:00 2001 From: Steve Streza Date: Sat, 3 Jul 2021 20:57:47 -0700 Subject: [PATCH] Add cask for Final Fantasy XIV (#106950) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add cask for Final Fantasy XIV * final-fantasy-xiv: Fix CI audit issues for homepage and livecheck * Poking CI * Revert "Poking CI" This reverts commit ca81e06b50d8bbd3488259414b2ce9b2e6000c9d. * Update and rename final-fantasy-xiv.rb to final-fantasy-xiv-online.rb Co-authored-by: Vítor Galvão --- Casks/final-fantasy-xiv-online.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Casks/final-fantasy-xiv-online.rb diff --git a/Casks/final-fantasy-xiv-online.rb b/Casks/final-fantasy-xiv-online.rb new file mode 100644 index 000000000000..f97101e484b0 --- /dev/null +++ b/Casks/final-fantasy-xiv-online.rb @@ -0,0 +1,23 @@ +cask "final-fantasy-xiv-online" do + version "pnvdkzgk77dj10" + sha256 "a187414e0a0a101b995f08706d1bd341992258e72d535409f1136daaed413f17" + + url "https://gdl.square-enix.com/ffxiv/inst/#{version}/FINAL_FANTASY_XIV_ONLINE_x64.dmg", + verified: "square-enix.com" + name "Final Fantasy XIV" + desc "Story-driven massively multiplayer online role-playing game" + homepage "https://www.finalfantasyxiv.com/" + + livecheck do + url "https://na.finalfantasyxiv.com/mac/download/" + strategy :page_match + regex(%r{href="https://gdl.square-enix.com/ffxiv/inst/([^/]*)/FINAL_FANTASY_XIV_ONLINE_x64.dmg"}i) + end + + auto_updates true + depends_on macos: ">= :mojave" + + app "FINAL FANTASY XIV ONLINE.app" + + uninstall trash: "~/Documents/My Games/FINAL FANTASY XIV - A Realm Reborn" +end