-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated stable channel to version 3.3.4
- Loading branch information
Dart CI
committed
Apr 17, 2024
1 parent
f348e36
commit 09a566f
Showing
3 changed files
with
68 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../Formula/[email protected].3.rb | ||
../Formula/[email protected].4.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# typed: false | ||
# frozen_string_literal: true | ||
|
||
class DartAT334 < 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.3.4/sdk/dartsdk-macos-x64-release.zip" | ||
sha256 "62285d9156bf6fb4439420bc327ab772df3a248b5d2df978284f510edb5d2c4a" | ||
elsif OS.mac? && Hardware::CPU.arm? | ||
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.3.4/sdk/dartsdk-macos-arm64-release.zip" | ||
sha256 "01c594a2a7dc1ad98d210a9751aaf0972c35b13992f0b1043e8bf93361d60b51" | ||
elsif OS.linux? && Hardware::CPU.intel? | ||
if Hardware::CPU.is_64_bit? | ||
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.3.4/sdk/dartsdk-linux-x64-release.zip" | ||
sha256 "6773922a60ce6f3b259dc4877c15f1cd96f325ca48015120014f64171708a7b2" | ||
else | ||
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.3.4/sdk/dartsdk-linux-ia32-release.zip" | ||
sha256 "5207b171a9d6d88bd711e6022a101d61323dba4971a1653f568dd34d052ab248" | ||
end | ||
elsif OS.linux? && Hardware::CPU.arm? | ||
if Hardware::CPU.is_64_bit? | ||
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.3.4/sdk/dartsdk-linux-arm64-release.zip" | ||
sha256 "c3473f681de8717134212c4cabd98ef25ec45c0adddd34e3b0d99431a606bdc9" | ||
else | ||
url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.3.4/sdk/dartsdk-linux-arm-release.zip" | ||
sha256 "84bd6dc6036993b8d2b41a2012d914a28d9f2e3800fd63ae02d21fb56c467c6f" | ||
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 |