Skip to content

Commit 39ec123

Browse files
exgphemiccalcho-m
authored
Update unity from 2020.1.17f1,9957aee8edc2 to 2021.1.3f1,4bef613afd59 (#104181)
* Update unity from 2020.1.17f1,9957aee8edc2 to 2021.1.3f1,4bef613afd59 * Update unity.rb * Update unity.rb Co-authored-by: Miccal Matthews <[email protected]> Co-authored-by: Michael Cho <[email protected]>
1 parent d84d282 commit 39ec123

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Casks/unity.rb

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
cask "unity" do
2-
version "2020.1.17f1,9957aee8edc2"
3-
sha256 "c6fa8c89eb9a93ee08830b84dc84a948afb32eb17ead7b220c2b5f44662bb6bf"
2+
version "2021.1.5f1,3737af19df53"
3+
sha256 "65da172336cd5fa667779963de6ee10ea3ac99b27be08c850eaa39a94c1971f3"
44

55
url "https://download.unity3d.com/download_unity/#{version.after_comma}/MacEditorInstaller/Unity-#{version.before_comma}.pkg",
66
verified: "download.unity3d.com/download_unity/"
7-
appcast "https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json"
87
name "Unity Editor"
98
desc "Platform for 3D content"
109
homepage "https://unity.com/products"
1110

11+
livecheck do
12+
url "https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json"
13+
strategy :page_match do |page|
14+
page.scan(%r{/download_unity/(\h+)/MacEditorInstaller/Unity-(\d+(?:\.\d+)*[a-z]*\d*)\.pkg}i).map do |match|
15+
"#{match[1]},#{match[0]}"
16+
end
17+
end
18+
end
19+
1220
pkg "Unity-#{version.before_comma}.pkg"
1321

1422
uninstall quit: "com.unity3d.UnityEditor5.x",

0 commit comments

Comments
 (0)