aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vice.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/vice.rb b/Library/Formula/vice.rb
index 66fb31778..30a003f44 100644
--- a/Library/Formula/vice.rb
+++ b/Library/Formula/vice.rb
@@ -37,6 +37,19 @@ class Vice <Formula
# We could trim down the .app sizes a bit more if we only kept
# the proper .icns files in the proper .app bundles...
+ Pathname.glob libexec+'*.app' do |d|
+ appname = File.basename(d, '.app')
+
+ Pathname.glob d+'Contents/Resources/x*.icns' do |g|
+ if File.basename(g, '.icns') != appname
+ File.unlink g
+ end
+ end
+ end
+
+ # A better approach to the above would be to modify the
+ # make-bindist.sh script to not copy extraneous icons
+ # in the first place.
end
def caveats