28 lines
1018 B
Ruby
28 lines
1018 B
Ruby
cask "unity-android-support-for-editor" do
|
|
version "2023.1.9f1,f3f94c8cdc49"
|
|
sha256 "6e96cbe235bd4ed9bbb9d0c3696fdbd6c0c251539c1115ab88b2f07dfd52cd9f"
|
|
|
|
url "https://download.unity3d.com/download_unity/#{version.csv.second}/MacEditorTargetInstaller/UnitySetup-Android-Support-for-Editor-#{version.csv.first}.pkg",
|
|
verified: "download.unity3d.com/download_unity/"
|
|
name "Unity Android Build Support"
|
|
desc "Android target support for Unity"
|
|
homepage "https://unity.com/products"
|
|
|
|
livecheck do
|
|
url "https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json"
|
|
regex(%r{
|
|
/download_unity/(\h+)/MacEditorTargetInstaller
|
|
/UnitySetup-Android-Support-for-Editor-(\d+(?:\.\d+)+[a-z]*\d*)\.pkg
|
|
}ix)
|
|
strategy :page_match do |page, regex|
|
|
page.scan(regex).map { |match| "#{match[1]},#{match[0]}" }
|
|
end
|
|
end
|
|
|
|
depends_on cask: "unity"
|
|
|
|
pkg "UnitySetup-Android-Support-for-Editor-#{version.csv.first}.pkg"
|
|
|
|
uninstall pkgutil: "com.unity3d.AndroidPlayer"
|
|
end
|