Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.95k stars 10.73k forks source link

Download springtoolsuite aarch version on MacBook M1 #118591

Closed zhoujian-official closed 2 years ago

zhoujian-official commented 2 years ago

Verification

Description of issue

springtoolsuite has separate versions of x86_64 and aarch64 for macOS, but the brew cask only downloads the x86_64 version. Please download springtoolsuite aarch version on MacBook M1, thanks.

Command that failed

brew install springtoolsuite

Output of command with --verbose --debug

HOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/brew.git for Homebrew/brew Git remote.
HOMEBREW_CORE_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/homebrew-core.git for Homebrew/core Git remote.
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 33 (delta 18), reused 33 (delta 18)
Unpacking objects: 100% (33/33), 172.70 KiB | 1.42 MiB/s, done.
From https://mirrors.ustc.edu.cn/homebrew-core
   9ccc327241b..5609f3e6aa6  master     -> origin/master
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
asyncapi                   linode-cli                 rure
==> Updated Formulae
Updated 1 formula.

==> Cask::Installer#install
==> Printing caveats
==> Cask::Installer#fetch
==> Downloading https://download.springsource.com/release/STS4/4.13.1.RELEASE/dist/e4.22/spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.3.13\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.2\)\ curl/7.77.0 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://download.springsource.com/release/STS4/4.13.1.RELEASE/dist/e4.22/spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
Already downloaded: /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
==> Checking quarantine support
/usr/bin/xattr -h
/usr/bin/swift /opt/homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
==> /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg is quarantined
==> Verifying checksum for cask 'springtoolsuite'
hdiutil imageinfo -format /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
==> Installing Cask springtoolsuite
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
hdiutil attach -plist -nobrowse -readonly -mountrandom /private/tmp/d20220203-14300-fgy98c /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
find . -print0
mkbom -s -i /private/tmp/20220203-14300-rvl4yr.list -- /private/tmp/20220203-14300-1tisx6b.bom
ditto --bom /private/tmp/20220203-14300-1tisx6b.bom -- /private/tmp/d20220203-14300-fgy98c/dmg.DbOiYZ /private/tmp/d20220203-14300-16olwp3
diskutil info -plist /private/tmp/d20220203-14300-fgy98c/dmg.DbOiYZ
diskutil eject /private/tmp/d20220203-14300-fgy98c/dmg.DbOiYZ
cp -pR /private/tmp/d20220203-14300-16olwp3/SpringToolSuite4.app/. /opt/homebrew/Caskroom/springtoolsuite/4.13.1,4.22.0/SpringToolSuite4.app
chmod -Rf +w /private/tmp/d20220203-14300-16olwp3
==> Verifying Gatekeeper status of /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
==> /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg is quarantined
==> Propagating quarantine from /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg to /opt/homebrew/Caskroom/springtoolsuite/4.13.1,4.22.0
/usr/bin/xattr -p com.apple.quarantine /Users/zhou/Library/Caches/Homebrew/downloads/572bb18b448102f2b447bc8ef851477b5f9f3183d6e8d640274e184bd4a6cb4a--spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg
/usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;61fb6d7c\;Homebrew\\x20Cask\;12CF2612-98E9-4C66-8D38-49E727EACB50
==> Creating metadata directory: /opt/homebrew/Caskroom/springtoolsuite/.metadata/4.13.1,4.22.0/20220203060131.346
==> Creating metadata subdirectory: /opt/homebrew/Caskroom/springtoolsuite/.metadata/4.13.1,4.22.0/20220203060131.346/Casks
==> Installing artifacts
==> 1 artifact defined
#<SortedSet: {#<Cask::Artifact::App:0x000000015756d738 @cask=#<Cask::Cask:0x00000001568d2fa0 @token="springtoolsuite", @sourcefile_path=#<Pathname:/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/springtoolsuite.rb>, @source="cask \"springtoolsuite\" do\n  version \"4.13.1,4.22.0\"\n  sha256 \"a52c73eaadb8f591ab4313beb52d61a705e1594e224115d98cca943f35d32baf\"\n\n  url \"https://download.springsource.com/release/STS\#{version.major}/\#{version.csv.first}.RELEASE/dist/e\#{version.csv.second.major_minor}/spring-tool-suite-\#{version.major}-\#{version.csv.first}.RELEASE-e\#{version.csv.second}-macosx.cocoa.x86_64.dmg\",\n      verified: \"download.springsource.com/release/\"\n  name \"Spring Tool Suite\"\n  desc \"Next generation tooling for Spring Boot\"\n  homepage \"https://spring.io/tools\"\n\n  livecheck do\n    url :homepage\n    strategy :page_match do |page|\n      match = page.match(\n        %r{href=.*?/spring-tool-suite-\\d+-(\\d+(?:\\.\\d+)+)\\.RELEASE-e(\\d+(?:\\.\\d+)+)-macosx\\.cocoa\\.x86_64\\.dmg}i,\n      )\n      next if match.blank?\n\n      \"\#{match[1]},\#{match[2]}\"\n    end\n  end\n\n  auto_updates true\n\n  app \"SpringToolSuite\#{version.major}.app\"\nend\n", @tap=#<Tap:0x0000000156891f28 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/opt/homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @formula_renames={}, @cask_dir=#<Pathname:/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00000001568d2ed8@/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/springtoolsuite.rb:1>, @default_config=#<Cask::Config:0x00000001568b8650 @explicit={}, @env={}, @default={:languages=>["zh-Hans-CN"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/zhou/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/zhou/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/zhou/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/zhou/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/zhou/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/zhou/Library/Fonts>, :servicedir=>#<Pathname:/Users/zhou/Library/Services>, :input_methoddir=>#<Pathname:/Users/zhou/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/zhou/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/zhou/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/zhou/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/zhou/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/zhou/Library/Screen Savers>}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/springtoolsuite>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/springtoolsuite/.metadata>, @config=#<Cask::Config:0x0000000157564048 @explicit={}, @env={}, @default={:languages=>["zh-Hans-CN"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/zhou/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/zhou/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/zhou/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/zhou/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/zhou/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/zhou/Library/Fonts>, :servicedir=>#<Pathname:/Users/zhou/Library/Services>, :input_methoddir=>#<Pathname:/Users/zhou/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/zhou/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/zhou/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/zhou/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/zhou/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/zhou/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x000000015756fe20 @cask=#<Cask::Cask:0x00000001568d2fa0 ...>, @token="springtoolsuite", @version="4.13.1,4.22.0", @sha256=#<Checksum:0x000000015756fb78 @hexdigest="a52c73eaadb8f591ab4313beb52d61a705e1594e224115d98cca943f35d32baf">, @url=#<URL::DSL:0x000000015756e228 @uri=#<URI::HTTPS https://download.springsource.com/release/STS4/4.13.1.RELEASE/dist/e4.22/spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.x86_64.dmg>, @verified="download.springsource.com/release/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"download.springsource.com/release/", :user_agent=>:default}>, @name=["Spring Tool Suite"], @desc="Next generation tooling for Spring Boot", @homepage="https://spring.io/tools", @livecheck=#<Livecheck:0x000000015756dd50 @formula_or_cask=#<Cask::DSL:0x000000015756fe20 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url=:homepage, @strategy_block=#<Proc:0x000000015756dc60@/opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/springtoolsuite.rb:13>>, @livecheckable=true, @auto_updates=true, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/springtoolsuite/4.13.1,4.22.0>, @language_eval=nil>>, @source_string="SpringToolSuite4.app", @target_string="", @source=#<Pathname:/opt/homebrew/Caskroom/springtoolsuite/4.13.1,4.22.0/SpringToolSuite4.app>, @target=#<Pathname:/Applications/SpringToolSuite4.app>>}>
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'SpringToolSuite4.app' to '/Applications/SpringToolSuite4.app'
/opt/homebrew/Library/Homebrew/shims/shared/git --version
🍺  springtoolsuite was successfully installed!

Output of brew doctor --verbose

==> Cask Environment Variables:
BUNDLE_PATH
CHRUBY_VERSION
GEM_HOME
GEM_PATH
HOMEBREW_CASK_OPTS
LC_ALL
PATH
RBENV_VERSION
RUBYLIB
RUBYOPT
RUBYPATH
SHELL
==> $LOAD_PATHS
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/warning-1.2.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tapioca-0.6.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/yard-sorbet-0.6.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/yard-0.9.27/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/spoom-1.1.8/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thor-1.2.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-runtime-stub-0.2.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-cobertura-2.1.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-0.21.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-html-0.12.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-3.0.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-sorbet-0.6.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-2.8.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rails-2.13.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.13.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-1.25.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unicode-display_width-2.1.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-ast-1.15.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec_junit_formatter-0.5.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-wait-0.0.9/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-sorbet-1.8.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-0.5.9579/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-static-0.5.9579-universal-darwin-14/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-retry-0.6.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-its-1.3.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-github-2.3.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-3.10.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-mocks-3.10.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-expectations-3.10.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-core-3.10.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-support-3.10.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ronn-0.7.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rexml-3.2.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rdiscount-2.2.0.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/rdiscount-2.2.0.2
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rbi-0.0.10/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unparser-0.6.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rack-2.2.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/pry-0.14.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/patchelf-1.3.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parlour-6.0.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-runtime-0.5.9579/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rainbow-3.1.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parser-3.1.0.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel_tests-3.7.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel-1.21.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mustache-1.1.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/method_source-1.0.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mechanize-2.8.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrobots-0.1.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrick-1.7.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubyntlm-0.6.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/nokogiri-1.13.1-x86_64-darwin/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/racc-1.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/racc-1.6.0
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mini_portile2-2.7.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-persistent-4.0.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-digest_auth-1.4.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-3.4.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-data-3.2022.0105/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/json_schemer-0.2.18/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/uri_template-0.7.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/http-cookie-1.0.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/hpricot-0.8.6/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/hpricot-0.8.6
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/hana-1.3.7/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/elftools-1.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ecma-re-validator-0.4.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/regexp_parser-2.2.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/domain_name-0.5.20190701/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf-0.1.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf_ext-0.0.8/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/unf_ext-0.0.8
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/docile-1.4.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/diff-lcs-1.5.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/did_you_mean-1.6.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/connection_pool-2.2.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/commander-4.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/highline-2.0.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/coderay-1.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/byebug-11.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/byebug-11.1.3
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/bootsnap-1.10.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/bootsnap-1.10.2
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/msgpack-1.4.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/msgpack-1.4.4
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/bindata-2.4.10/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ast-2.4.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/addressable-2.8.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/public_suffix-4.0.6/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.1.4.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.5.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-2.0.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/minitest-5.15.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.9.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby
/Library/Ruby/Gems/2.6.0/gems/did_you_mean-1.3.0/lib
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/arm64e-darwin21
/Library/Ruby/Site/2.6.0/universal-darwin21
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/arm64e-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/arm64e-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21
/opt/homebrew/Library/Homebrew
==> Homebrew Version
3.3.13
==> macOS
12.2
==> SIP
Enabled
==> Homebrew Cask Staging Location
/opt/homebrew/Caskroom
==> Homebrew Cask Taps:
/opt/homebrew/Library/Taps/homebrew/homebrew-cask (3955 casks)
/opt/homebrew/Library/Taps/homebrew/homebrew-cask-versions (211 casks)
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libAliST.dylib

Output of brew tap

homebrew/cask
homebrew/cask-versions
homebrew/core
carlocab commented 2 years ago

Would you like to open a PR for this? Something like this should work:

diff --git a/Casks/springtoolsuite.rb b/Casks/springtoolsuite.rb
index da4c0f401a..fa726c3e2b 100644
--- a/Casks/springtoolsuite.rb
+++ b/Casks/springtoolsuite.rb
@@ -1,8 +1,14 @@
 cask "springtoolsuite" do
+  arch = Hardware::CPU.intel? ? "x86_64" : "aarch64"
   version "4.13.0,4.22.0"
-  sha256 "ab25a0837de367605b3445fc358939bba1ba21408eb43cf8acccb8e7eb628be1"

-  url "https://download.springsource.com/release/STS#{version.major}/#{version.csv.first}.RELEASE/dist/e#{version.csv.second.major_minor}/spring-tool-suite-#{version.major}-#{version.csv.first}.RELEASE-e#{version.csv.second}-macosx.cocoa.x86_64.dmg",
+  if Hardware::CPU.intel?
+    sha256 "ab25a0837de367605b3445fc358939bba1ba21408eb43cf8acccb8e7eb628be1"
+  else
+    sha256 "aarch64 dmg checksum here"
+  end
+
+  url "https://download.springsource.com/release/STS#{version.major}/#{version.csv.first}.RELEASE/dist/e#{version.csv.second.major_minor}/spring-tool-suite-#{version.major}-#{version.csv.first}.RELEASE-e#{version.csv.second}-macosx.cocoa.#{arch}.dmg",
       verified: "download.springsource.com/release/"
   name "Spring Tool Suite"
   desc "Next generation tooling for Spring Boot"

You'll need to fill in the checksum correctly, of course.

miccal commented 2 years ago

As pointed out by @carlocab, please submit a pull request to add the Arm version to this Cask, thanks.

plche commented 2 years ago

For what is worth, the sha256 when running on Terminal: shasum -a 256 spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.aarch64.dmg is: 704b71d6e41a1fc5ae2bdca416e980de010c0a4fa94002f1df2c65ac6ef0345c spring-tool-suite-4-4.13.1.RELEASE-e4.22.0-macosx.cocoa.aarch64.dmg