mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
feat: add linux support to bump-cask-pr
This commit is contained in:
parent
7687ae3891
commit
4f7e45881d
@ -192,11 +192,11 @@ module Homebrew
|
|||||||
def replace_version_and_checksum(cask, new_hash, new_version, replacement_pairs)
|
def replace_version_and_checksum(cask, new_hash, new_version, replacement_pairs)
|
||||||
# When blocks are absent, arch is not relevant. For consistency, we simulate the arm architecture.
|
# When blocks are absent, arch is not relevant. For consistency, we simulate the arm architecture.
|
||||||
system_options = if !cask.on_system_blocks_exist?
|
system_options = if !cask.on_system_blocks_exist?
|
||||||
[:macos, :arm]
|
[[:macos, :arm]]
|
||||||
elsif cask.on_system_blocks_exist? && cask.os.nil?
|
elsif cask.on_system_blocks_exist? && cask.depends_on.macos
|
||||||
[:macos].product(OnSystem::ARCH_OPTIONS)
|
[:macos].product(OnSystem::ARCH_OPTIONS)
|
||||||
else
|
else
|
||||||
OnSystem::BASE_OS_OPTIONS.product(OnSystem::ARCH_OPTIONS) :
|
OnSystem::BASE_OS_OPTIONS.product(OnSystem::ARCH_OPTIONS)
|
||||||
end
|
end
|
||||||
|
|
||||||
system_options.each do |os, arch|
|
system_options.each do |os, arch|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user