From 01a076ac54936534b687df477d4b78a1be8b5e9e Mon Sep 17 00:00:00 2001 From: Benedikt Terhechte Date: Tue, 11 Jan 2022 11:51:51 +0100 Subject: [PATCH] Add the plist line to allow using the internal GPU --- postsack-native/build_mac.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postsack-native/build_mac.sh b/postsack-native/build_mac.sh index 490c759..5b17dc3 100755 --- a/postsack-native/build_mac.sh +++ b/postsack-native/build_mac.sh @@ -31,6 +31,9 @@ mv ./postsack ../target/release/bundle/osx/Postsack.app/Contents/MacOS/Postsack /usr/libexec/PlistBuddy -c "Set :CFBundleExecutable Postsack" "../target/release/bundle/osx/Postsack.app/Contents/Info.plist" +# Tell the Info.plist that we are allowed to use the integrated GPU instead of the dedicated +/usr/libexec/PlistBuddy -c "Add :NSSupportsAutomaticGraphicsSwitching bool true" "../target/release/bundle/osx/Postsack.app/Contents/Info.plist" + # Create a zip file cd ../target/release/bundle/osx/ /usr/bin/zip -5 -r ../../../postsack.zip ./Postsack.app