Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding script that allows Java-based apps to look good on retina disp…

…lays
  • Loading branch information...
commit e1ebd049d98d378f6f3d6317ccb7f7c94350301e 1 parent 390a98e
@eriwen authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 .scripts/retinafy.sh
View
21 .scripts/retinafy.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+APP=$1
+
+if [ -z $APP ]
+then
+ echo "Usage: ${0} /Applications/MyApp.app"
+ exit 0
+fi
+
+read -p "Please make sure ${1} is closed. Press [Enter] to continue."
+
+cp -R $APP $APP.bak
+awk '/<dict>/{if (M==""){sub("<dict>","<dict><key>NSHighResolutionCapable<\/key><true\/>");M=1}}{print}' ${APP}.bak/Contents/Info.plist > ${APP}.bak/Contents/Info.plist.new
+mv ${APP}.bak/Contents/Info.plist{.new,}
+
+# Clear application caches
+rm -rf $APP
+mv $APP.bak $APP
+
+echo "Done!"

0 comments on commit e1ebd04

Please sign in to comment.
Something went wrong with that request. Please try again.