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