File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
cask "unity" do
2
- version "2020 .1.17f1,9957aee8edc2 "
3
- sha256 "c6fa8c89eb9a93ee08830b84dc84a948afb32eb17ead7b220c2b5f44662bb6bf "
2
+ version "2021 .1.5f1,3737af19df53 "
3
+ sha256 "65da172336cd5fa667779963de6ee10ea3ac99b27be08c850eaa39a94c1971f3 "
4
4
5
5
url "https://download.unity3d.com/download_unity/#{ version . after_comma } /MacEditorInstaller/Unity-#{ version . before_comma } .pkg" ,
6
6
verified : "download.unity3d.com/download_unity/"
7
- appcast "https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json"
8
7
name "Unity Editor"
9
8
desc "Platform for 3D content"
10
9
homepage "https://unity.com/products"
11
10
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
+
12
20
pkg "Unity-#{ version . before_comma } .pkg"
13
21
14
22
uninstall quit : "com.unity3d.UnityEditor5.x" ,
You can’t perform that action at this time.
0 commit comments