diff --git a/Aliases/dart@3.6 b/Aliases/dart@3.6 index f0e99b0..baa67a7 120000 --- a/Aliases/dart@3.6 +++ b/Aliases/dart@3.6 @@ -1 +1 @@ -../Formula/dart@3.6.0.rb \ No newline at end of file +../Formula/dart@3.6.1.rb \ No newline at end of file diff --git a/Formula/dart.rb b/Formula/dart.rb index 042676c..ebf5f9a 100644 --- a/Formula/dart.rb +++ b/Formula/dart.rb @@ -34,26 +34,26 @@ class Dart < Formula conflicts_with "dart-beta", because: "dart-beta ships the same binaries" if OS.mac? && Hardware::CPU.intel? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.0/sdk/dartsdk-macos-x64-release.zip" - sha256 "b859b1abd92997b389061be6b301e598a3edcbf7e092cfe5b8d6ce2acdf0732b" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-macos-x64-release.zip" + sha256 "b797e4e9ab31192264a9ff8d148f3d58f05f0f8cdf82f04c59fd67832c55daff" elsif OS.mac? && Hardware::CPU.arm? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.0/sdk/dartsdk-macos-arm64-release.zip" - sha256 "1bdbc6544aaa53673e7cbbf66ad7cde914cb7598936ebbd6a4245e1945a702a0" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-macos-arm64-release.zip" + sha256 "8fd91cb89fe883c448a26e6e34d861d51d9451976c56db2287c5f2df80191ff4" elsif OS.linux? && Hardware::CPU.intel? if Hardware::CPU.is_64_bit? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.0/sdk/dartsdk-linux-x64-release.zip" - sha256 "8e14ff436e1eec72618dabc94f421a97251f2068c9cc9ad2d3bb9d232d6155a3" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-x64-release.zip" + sha256 "fbed37419784149c93f3ae444b9a9d1b5d5b73a521cbce731899d601d9b435b4" else - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.0/sdk/dartsdk-linux-ia32-release.zip" - sha256 "7c8fe91f6ca9f7b2f8216a34e49e9963b38fea8cda77db9ee96f419ec19f114d" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-ia32-release.zip" + sha256 "23dbdbd8020aeba52c694eeaebe4c29bc2be5476056b5750bffbb2d231371584" end elsif OS.linux? && Hardware::CPU.arm? if Hardware::CPU.is_64_bit? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.0/sdk/dartsdk-linux-arm64-release.zip" - sha256 "0f82f10f808c7003d0d03294ae9220b5e0824ab3d2d19b4929d4fa735254e7bf" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-arm64-release.zip" + sha256 "9192cc5efe2af1ff91aae692950550ae4eb649656e5e003c76b4ed55c328154e" else - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.0/sdk/dartsdk-linux-arm-release.zip" - sha256 "7281158159d65d35d0bee46a97eb425f3efcb53ca3e52fd4901aac47da8af3fc" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-arm-release.zip" + sha256 "2792acd3abfba7f3d61fef7d0973bbd8069f5f0ebaa3a4bc47222cbf8d4811bf" end end diff --git a/Formula/dart@3.6.1.rb b/Formula/dart@3.6.1.rb new file mode 100644 index 0000000..878cca8 --- /dev/null +++ b/Formula/dart@3.6.1.rb @@ -0,0 +1,55 @@ +# typed: false +# frozen_string_literal: true + +class DartAT361 < Formula + desc "SDK" + homepage "https://dart.dev" + + keg_only :versioned_formula + if OS.mac? && Hardware::CPU.intel? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-macos-x64-release.zip" + sha256 "b797e4e9ab31192264a9ff8d148f3d58f05f0f8cdf82f04c59fd67832c55daff" + elsif OS.mac? && Hardware::CPU.arm? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-macos-arm64-release.zip" + sha256 "8fd91cb89fe883c448a26e6e34d861d51d9451976c56db2287c5f2df80191ff4" + elsif OS.linux? && Hardware::CPU.intel? + if Hardware::CPU.is_64_bit? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-x64-release.zip" + sha256 "fbed37419784149c93f3ae444b9a9d1b5d5b73a521cbce731899d601d9b435b4" + else + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-ia32-release.zip" + sha256 "23dbdbd8020aeba52c694eeaebe4c29bc2be5476056b5750bffbb2d231371584" + end + elsif OS.linux? && Hardware::CPU.arm? + if Hardware::CPU.is_64_bit? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-arm64-release.zip" + sha256 "9192cc5efe2af1ff91aae692950550ae4eb649656e5e003c76b4ed55c328154e" + else + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.6.1/sdk/dartsdk-linux-arm-release.zip" + sha256 "2792acd3abfba7f3d61fef7d0973bbd8069f5f0ebaa3a4bc47222cbf8d4811bf" + end + end + + def install + libexec.install Dir["*"] + bin.install_symlink "#{libexec}/bin/dart" + bin.write_exec_script Dir["#{libexec}/bin/{pub,dart?*}"] + end + + def caveats + <<~EOS + Please note the path to the Dart SDK: + #{opt_libexec} + EOS + end + + test do + (testpath/"sample.dart").write <<~EOS + void main() { + print(r"test message"); + } + EOS + + assert_equal "test message\n", shell_output("#{bin}/dart sample.dart") + end +end