WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit af0ee5d

Browse files
izzalDevp-linnane
authored andcommitted
flutter: add Linux support
Signed-off-by: Patrick Linnane <[email protected]>
1 parent e381f23 commit af0ee5d

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Casks/f/flutter.rb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
cask "flutter" do
22
arch arm: "_arm64"
3+
os macos: "macos", linux: "linux"
4+
5+
file_extension = on_system_conditional macos: "zip", linux: "tar.xz"
36

47
version "3.35.7"
5-
sha256 arm: "4d7aaadc4893f9216d4e2ecbe0e8fb4213e9bd49d29fd5f441f34fcc05758e2b",
6-
intel: "1d9630be94c200877a3799d88db587e3575f88dd05c98bae733756bec0a8ec97"
8+
sha256 arm: "4d7aaadc4893f9216d4e2ecbe0e8fb4213e9bd49d29fd5f441f34fcc05758e2b",
9+
intel: "1d9630be94c200877a3799d88db587e3575f88dd05c98bae733756bec0a8ec97",
10+
x86_64_linux: "146df531f9ac6a11a918013c1a70faafc053d4811c8cb69a413fd70748d51c3d"
11+
12+
on_linux do
13+
depends_on arch: :x86_64
14+
end
715

8-
url "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos#{arch}_#{version}-stable.zip",
9-
verified: "storage.googleapis.com/flutter_infra_release/releases/stable/macos/"
16+
url "https://storage.googleapis.com/flutter_infra_release/releases/stable/#{os}/flutter_#{os}#{arch}_#{version}-stable.#{file_extension}",
17+
verified: "storage.googleapis.com/flutter_infra_release/releases/stable/#{os}/"
1018
name "Flutter SDK"
1119
desc "UI toolkit for building applications for mobile, web and desktop"
1220
homepage "https://flutter.dev/"
1321

1422
livecheck do
15-
url "https://storage.googleapis.com/flutter_infra_release/releases/releases_macos.json"
23+
url "https://storage.googleapis.com/flutter_infra_release/releases/releases_#{os}.json"
1624
strategy :json do |json|
1725
json["releases"]&.map do |release|
1826
next if release["channel"] != "stable"

0 commit comments

Comments
 (0)