Skip to content

Commit

Permalink
Merge pull request #170101 from Homebrew/ftb-app
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane committed Mar 30, 2024
2 parents d66d137 + 61a89d9 commit bdb1cff
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions 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"

Expand Down

0 comments on commit bdb1cff

Please sign in to comment.