forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8958fe
commit b720d8d
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters