Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feed-the-beast: various updates #170101

Merged
merged 3 commits into from Mar 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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