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 4672400

Browse files
committed
flutter: add Linux support
Signed-off-by: Patrick Linnane <[email protected]>
1 parent e7a628e commit 4672400

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

Casks/f/flutter.rb

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
cask "flutter" do
2-
arch arm: "_arm64"
3-
42
version "3.38.1"
5-
sha256 arm: "1eab8511396e252420efd46854a843203960a14fb8bb7c65ea16cd8df5a66efc",
6-
intel: "8b153a253fe0e2d785d12a7a430b4fb1fda93b6f8326ed75c0a7fb6fd2508ed9"
3+
sha256 :no_check
74

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/"
5+
url "https://github.com/flutter/flutter.git",
6+
branch: "stable",
7+
verified: "github.com/flutter/"
108
name "Flutter SDK"
11-
desc "UI toolkit for building applications for mobile, web and desktop"
9+
desc "UI toolkit for building applications for mobile, web, and desktop"
1210
homepage "https://flutter.dev/"
1311

1412
livecheck do
15-
url "https://storage.googleapis.com/flutter_infra_release/releases/releases_macos.json"
16-
strategy :json do |json|
17-
json["releases"]&.map do |release|
18-
next if release["channel"] != "stable"
19-
20-
release["version"]
21-
end
22-
end
13+
url "https://github.com/flutter/flutter.git"
14+
regex(/^v?(\d+(?:\.\d+)+)$/i)
2315
end
2416

2517
auto_updates true
2618

27-
suite "flutter", target: "#{HOMEBREW_PREFIX}/share/flutter"
28-
binary "flutter/bin/dart"
29-
binary "flutter/bin/flutter"
19+
binary "bin/flutter"
20+
binary "bin/dart"
21+
artifact ".", target: "#{HOMEBREW_PREFIX}/share/flutter"
22+
23+
postflight do
24+
system_command "#{HOMEBREW_PREFIX}/share/flutter/bin/flutter",
25+
args: ["precache"],
26+
print_stdout: true
27+
end
3028

3129
zap trash: "~/.flutter"
3230
end

0 commit comments

Comments
 (0)