Created
May 8, 2015 08:11
-
-
Save Dahlgren/72f0465d7ef326a44c78 to your computer and use it in GitHub Desktop.
Add support for Automatic Graphics Switching in OSX application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AppName="$1" | |
defaults write "$AppName/Contents/Info.plist" "NSSupportsAutomaticGraphicsSwitching" -bool true | |
if [ $? -eq 0 ]; then | |
chmod 664 "$AppName/Contents/Info.plist" | |
codesign -f --verbose --deep -s - "$AppName/" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment