diff --git a/Casks/f/feed-the-beast.rb b/Casks/f/feed-the-beast.rb index c08b01b2c1fd..ba834d1bda45 100644 --- a/Casks/f/feed-the-beast.rb +++ b/Casks/f/feed-the-beast.rb @@ -1,22 +1,21 @@ cask "feed-the-beast" do - version "202401041638,9dc7936164" - sha256 "7cd9db09f32a90c48029f698e60100e18d19bde8f16b7b26649f17e9c2828f98" + arch arm: "arm64", intel: "x64" - url "https://apps.modpacks.ch/FTBApp/release/#{version.csv.first}-#{version.csv.second}/FTBA_macos_#{version.csv.first}-#{version.csv.second}.dmg", - verified: "apps.modpacks.ch/FTBApp/" + version "1.25.6" + sha256 arm: "8cdd030d94efbe67ec0380813caf42f75e579c117810c14edfad08e79d64a03d", + intel: "397c25a095c330e63fc18a81afa4d91126563aedceb39e0f2623529a1b98ad49" + + url "https://piston.feed-the-beast.com/app/ftb-app-#{version}-#{arch}.dmg" name "Feed the Beast" desc "Minecraft mod downloader and manager" homepage "https://www.feed-the-beast.com/" livecheck do url "https://meta.feed-the-beast.com/v1/app/versions" - regex(/FTBA[._-]macos[._-](\d+)[._-](\h+)\.dmg/i) - strategy :page_match do |page, regex| - page.scan(regex).map { |match| "#{match[0]},#{match[1]}" } - end + regex(/ftb[._-]app[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i) end - app "FTBApp.app" + app "FTB App.app" zap trash: "~/Library/Application Support/ftblauncher"