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

various casks (b-d): migrate #172439

Merged
merged 16 commits into from
Apr 29, 2024
Merged
Prev Previous commit
Next Next commit
defold@beta: migrate
  • Loading branch information
razvanazamfirei committed Apr 29, 2024
commit cfd5ae82172e1738631b1840e9658f5ae5530212
44 changes: 44 additions & 0 deletions Casks/d/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
cask "defold@beta" do
arch arm: "arm64", intel: "x86_64"

version "1.8.0"
sha256 :no_check # required as upstream package is updated in-place

url "https://github.com/defold/defold/releases/download/#{version}-beta/Defold-#{arch}-macos.dmg",
verified: "github.com/defold/defold/"
name "Defold"
desc "Game engine for development of desktop, mobile and web games"
homepage "https://defold.com/"

# The `GithubReleases` strategy omits releases marked as pre-release, so we
# have to use a `strategy` block to work with unstable versions.
livecheck do
url :url
regex(/^v?(\d+(?:\.\d+)+)[._-]beta$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
end

auto_updates true
conflicts_with cask: [
"defold",
"defold-alpha",
]

app "Defold.app"

zap trash: [
"~/Library/Application Support/Defold",
"~/Library/Caches/com.defold.editor",
"~/Library/Preferences/com.defold.editor.plist",
"~/Library/Saved Application State/com.defold.editor.savedState",
]
end