mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #163626 from nickwph/master
Added post-flight script to link installed directory to current version.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user