Skip to content

Commit

Permalink
defold@beta: migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 29, 2024
1 parent e8958fe commit b720d8d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
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@alpha" do
arch arm: "arm64", intel: "x86_64"

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

url "https://github.com/defold/defold/releases/download/#{version}-alpha/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+)+)[._-]alpha$/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-beta",
]

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
1 change: 1 addition & 0 deletions audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cleartext": "all",
"comma-chameleon": "all",
"crypter": "all",
"defold@alpha": "all",
"drop-to-gif": "all",
"duplicati": "all",
"extraterm": "all",
Expand Down

0 comments on commit b720d8d

Please sign in to comment.