Skip to content
Open
Changes from all commits
提交
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Formula/c/crowdin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@

depends_on "bun" => :build

on_linux do
depends_on "icu4c@78"

Check warning on line 23 in Formula/c/crowdin.rb

View workflow job for this annotation

GitHub 操作 / Linux arm64

crowdin: new dependency impact

Adding `icu4c@78` adds 1 new recursive dependency on arm64_linux (96.2MB).

Check warning on line 23 in Formula/c/crowdin.rb

View workflow job for this annotation

GitHub 操作 / Linux x86_64

crowdin: new dependency impact

Adding `icu4c@78` adds 1 new recursive dependency on x86_64_linux (94.4MB).
end

def install
if OS.linux?
bun_icu = Formula["bun"].deps.find { |dep| dep.name.match?(/^icu4c/) }.to_formula
icu = deps.find { |dep| dep.name.match?(/^icu4c/) }.to_formula

odie "Update icu4c dependency!" if bun_icu.name != icu.name
end

system "bun", "install", "--frozen-lockfile", "--ignore-scripts"
system "bun", "run", "build"

Expand Down
Loading