Skip to content

Commit

Permalink
capcut: add 3.0.0.1015
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Jan 9, 2024
1 parent 8800f16 commit 224cbc3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Casks/capcut.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cask "capcut" do
version "3.0.0.1015"
sha256 "5a2858073fc5585d47c7ddf7483832dcdbfdd44c7acfbcc050078f4ea1535a7e"

url "https://lf16-capcut.faceulv.com/obj/capcutpc-packages-us/packages/CapCut_#{version.dots_to_underscores}_capcutpc_0_creatortool.dmg",
verified: "lf16-capcut.faceulv.com/obj/capcutpc-packages-us/packages/"
name "CapCut"
desc "Creative platform powered by AI that enables video editing and image design"
homepage "https://www.capcut.com/"

livecheck do
url "https://editor-api-sg.capcut.com/service/settings/v3/?app=1&arch_info=arm64&device_id=2398670469&aid=359289&from_aid=359289&device_platform=mac&from_channel=capcutpc_0"
regex(/CapCut[._-]v?(\d+(?:[._]\d+)+).+?\.dmg/i)
strategy :json do |json, regex|
url = json.dig("data", "settings", "installer_downloader_config", "url")
next if url.blank?

match = url.match(regex)
next if match.blank?

match[1].tr("_", ".")
end
end

depends_on macos: ">= :mojave"

app "CapCut.app"

zap trash: [
"~/Library/Application Scripts/com.lemon.lvoverseas",
"~/Library/Containers/com.lemon.lvoverseas",
"~/Library/Group Containers/22MMUN2RN5.lv",
"~/Library/Group Containers/22MMUN2RN5.ve",
]
end
1 change: 1 addition & 0 deletions 列表.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| `clash-nyanpasu` | [Clash-Nyanpasu](https://github.com/keiko233/clash-nyanpasu) | ![a](assets/a.svg)![1](assets/1.svg) ||
| `clash-verge-rev` | [Clash-Verge-Rev](https://github.com/wonfen/clash-verge-rev) | ![a](assets/a.svg)![1](assets/1.svg) ||
| `clash-verge` | [Clash-Verge(已归档)](https://github.com/zzzgydi/clash-verge) | ![a](assets/a.svg)![1](assets/1.svg) ||
| `capcut` | [剪映](https://www.capcut.com/) | ![b](assets/b.svg)![1](assets/1.svg) ||
| `copybook` | [字帖生成器](https://github.com/xxNull-lsk/Copybook) | ![a](assets/a.svg)![1](assets/1.svg) ||
| `e-study` | [知网研学(原 E-Study)](https://e-study.com) | ![b](assets/b.svg)![1](assets/1.svg)![3](assets/3.svg) ||
| `easy-to-tv` | [Easy To TV](https://github.com/duolabmeng6/easy_to_tv) | ![a](assets/a.svg)![1](assets/1.svg) ||
Expand Down

0 comments on commit 224cbc3

Please sign in to comment.