Skip to content

Commit f7efa4d

Browse files
author
Dart CI
committed
Updated stable channel to version 3.10.1
1 parent 217da2d commit f7efa4d

File tree

3 files changed

+61
-11
lines changed

3 files changed

+61
-11
lines changed

Aliases/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../Formula/[email protected].0.rb
1+
../Formula/[email protected].1.rb

Formula/dart.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ class Dart < Formula
2929

3030
conflicts_with "dart-beta", because: "dart-beta ships the same binaries"
3131
if OS.mac? && Hardware::CPU.intel?
32-
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.0/sdk/dartsdk-macos-x64-release.zip"
33-
sha256 "5616af41c8356f9d739cc1bc93c1a6dd4a3830fb0879d5508b1493de24e9a317"
32+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-macos-x64-release.zip"
33+
sha256 "462436904165ba6d3c72d265c019a5de63da2294edfd903d06073b3992b544c2"
3434
elsif OS.mac? && Hardware::CPU.arm?
35-
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.0/sdk/dartsdk-macos-arm64-release.zip"
36-
sha256 "d09fc933505c36f72a92254a5796028a1c5eafdeb8b9ebfac62000a178798a0a"
35+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-macos-arm64-release.zip"
36+
sha256 "37d233029f48b75b368a35f0fa1eb728fc5780a03a4b28a2ec3bcc343884a6c8"
3737
elsif OS.linux? && Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
38-
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.0/sdk/dartsdk-linux-x64-release.zip"
39-
sha256 "a27681be873c3891692285db8d656e7494ca80c74e86613b8085fc6cffa3e31d"
38+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-linux-x64-release.zip"
39+
sha256 "a352fd18e0c07aab694bba9cf57e431eddce390550a90449b1ff880fee7736f4"
4040
elsif OS.linux? && Hardware::CPU.arm?
4141
if Hardware::CPU.is_64_bit?
42-
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.0/sdk/dartsdk-linux-arm64-release.zip"
43-
sha256 "688603283b9a9e7833da53eb5b3a07d78fea9c51fdd925bbfd922775d4ba5ea3"
42+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-linux-arm64-release.zip"
43+
sha256 "60d33687806781175723f4cb7def7adf83ee0f981ca997d2eece40f975526b4c"
4444
else
45-
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.0/sdk/dartsdk-linux-arm-release.zip"
46-
sha256 "b91536edbcafc0d6389b8db6d1677bac0c608a1578fdf7c919b47b439aa044f1"
45+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-linux-arm-release.zip"
46+
sha256 "4b2e148019dfa1c1703ccc86aea45fe711ed09f190d853a26c172b5b962bf5bd"
4747
end
4848
end
4949

Formula/[email protected]

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# typed: false
2+
# frozen_string_literal: true
3+
4+
class DartAT3101 < Formula
5+
desc "SDK"
6+
homepage "https://dart.dev"
7+
8+
keg_only :versioned_formula
9+
if OS.mac? && Hardware::CPU.intel?
10+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-macos-x64-release.zip"
11+
sha256 "462436904165ba6d3c72d265c019a5de63da2294edfd903d06073b3992b544c2"
12+
elsif OS.mac? && Hardware::CPU.arm?
13+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-macos-arm64-release.zip"
14+
sha256 "37d233029f48b75b368a35f0fa1eb728fc5780a03a4b28a2ec3bcc343884a6c8"
15+
elsif OS.linux? && Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
16+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-linux-x64-release.zip"
17+
sha256 "a352fd18e0c07aab694bba9cf57e431eddce390550a90449b1ff880fee7736f4"
18+
elsif OS.linux? && Hardware::CPU.arm?
19+
if Hardware::CPU.is_64_bit?
20+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-linux-arm64-release.zip"
21+
sha256 "60d33687806781175723f4cb7def7adf83ee0f981ca997d2eece40f975526b4c"
22+
else
23+
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.10.1/sdk/dartsdk-linux-arm-release.zip"
24+
sha256 "4b2e148019dfa1c1703ccc86aea45fe711ed09f190d853a26c172b5b962bf5bd"
25+
end
26+
end
27+
28+
def install
29+
libexec.install Dir["*"]
30+
bin.install_symlink "#{libexec}/bin/dart"
31+
bin.write_exec_script Dir["#{libexec}/bin/{pub,dart?*}"].select { |f| File.executable?(f) }
32+
end
33+
34+
def caveats
35+
<<~EOS
36+
Please note the path to the Dart SDK:
37+
#{opt_libexec}
38+
EOS
39+
end
40+
41+
test do
42+
(testpath/"sample.dart").write <<~EOS
43+
void main() {
44+
print(r"test message");
45+
}
46+
EOS
47+
48+
assert_equal "test message\n", shell_output("#{bin}/dart sample.dart")
49+
end
50+
end

0 commit comments

Comments
 (0)