Merge pull request #163626 from nickwph/master

Added post-flight script to link installed directory to current version.
This commit is contained in:
Miccal Matthews
2024-01-03 06:23:39 +08:00
committed by GitHub
+8
View File
@@ -21,5 +21,13 @@ cask "flutter" do
binary "flutter/bin/dart"
binary "flutter/bin/flutter"
postflight do
FileUtils.ln_sf("#{staged_path}/flutter", "#{HOMEBREW_PREFIX}/share/flutter")
end
uninstall_postflight do
FileUtils.rm_f("#{HOMEBREW_PREFIX}/share/flutter")
end
zap trash: "~/.flutter"
end