mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
zspace 2.4.2023101101
This commit is contained in:
+10
-9
@@ -1,16 +1,17 @@
|
||||
cask "zspace" do
|
||||
arch arm: "ARM"
|
||||
arch arm: "arm64", intel: "x64"
|
||||
folder = on_arch_conditional arm: "ARM"
|
||||
|
||||
on_arm do
|
||||
version "2.4.2023071305,1689577756"
|
||||
sha256 "96d7abedabc469962c8c51fbc560121b53fccfb0a0b34bbab9cd1a225a51bc86"
|
||||
version "2.4.2023101101,1697202407,101116"
|
||||
sha256 "2a3c0e9a6923037d223aabb5dcaba41c7e89a0cd1c944fc856f715fe492d59d1"
|
||||
end
|
||||
on_intel do
|
||||
version "2.4.2023071305,1689566844"
|
||||
sha256 "d58c7a5fbe52afe40431fd389b40714a994282307b0a39fe5580b425f1c5b615"
|
||||
version "2.4.2023101101,1697202343,101116"
|
||||
sha256 "9e91a74238513b13be4066f25f2c187b58f9165884457d0cf3a9c4e1d2f2b3f9"
|
||||
end
|
||||
|
||||
url "https://update.zenithspace.net/app/APP_ZSPACE_DESKTOP_MAC#{arch}/V#{version.csv.first}/zspace/#{version.csv.second}/zspace_V#{version.csv.first}.dmg",
|
||||
url "https://update.zenithspace.net/app/APP_ZSPACE_DESKTOP_MAC#{folder}/V#{version.csv.first}/zspace/#{version.csv.second}/zspace_mac_#{arch}_#{version.csv.first}_#{version.csv.third}.dmg",
|
||||
verified: "update.zenithspace.net/app/"
|
||||
name "zspace"
|
||||
name "极空间"
|
||||
@@ -18,10 +19,10 @@ cask "zspace" do
|
||||
homepage "https://www.zspace.cn/"
|
||||
|
||||
livecheck do
|
||||
url "https://upgrade.zenithspace.net/upgrade_server/v2/check_upgrade?app_id=APP_ZSPACE_DESKTOP_MAC#{arch}&app_version=V0.0.0&nas_id=&plat=app&channel=zspace&skip_app_sync_upgrade=1"
|
||||
regex(%r{v?(\d+(?:\.\d+)+)/zspace/(\d+)/}i)
|
||||
url "https://upgrade.zenithspace.net/upgrade_server/v2/check_upgrade?app_id=APP_ZSPACE_DESKTOP_MAC#{folder}&app_version=V0.0.0&nas_id=&plat=app&channel=zspace&skip_app_sync_upgrade=1"
|
||||
regex(%r{v?(\d+(?:\.\d+)+)/zspace/(\d+)/zspace[._-]mac[._-]#{arch}[._-](?:\d+(?:\.\d+)+)[._-](\d+)\.dmg}i)
|
||||
strategy :json do |json, regex|
|
||||
json["data"]["download_url"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
|
||||
json["data"]["download_url"]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]},#{match[2]}" }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user