Skip to content

Commit

Permalink
use caffeinate instead of noidle, rm unneeded entitlement
Browse files Browse the repository at this point in the history
  • Loading branch information
insanj committed Mar 25, 2021
1 parent eb232ca commit b3b54b3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
8 changes: 4 additions & 4 deletions whilom.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -380,15 +380,15 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 24X8MVUSCN;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = whilom/Assets/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.3.1;
MARKETING_VERSION = 0.3.2;
PRODUCT_BUNDLE_IDENTIFIER = com.insanj.whilom;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -410,15 +410,15 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 24X8MVUSCN;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = whilom/Assets/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.3.1;
MARKETING_VERSION = 0.3.2;
PRODUCT_BUNDLE_IDENTIFIER = com.insanj.whilom;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion whilom/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
# step four, override screensaver time in prefs, but we must check if null ifrst
*/
let myAppleScript = """
do shell script "screen -S whilom -d -m pmset noidle"
do shell script "screen -S whilom -d -m caffeinate -u"
do shell script "sudo pmset -a disablesleep 1"\(appendString) with administrator privileges
Expand Down
2 changes: 0 additions & 2 deletions whilom/Assets/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
<true/>
<key>NSAppleEventsUsageDescription</key>
<string>Turning on or off the ability for your Mac to go to Sleep.</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2021 Snowcode, LLC. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
Expand Down
5 changes: 1 addition & 4 deletions whilom/Assets/whilom.entitlements
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
<dict/>
</plist>
5 changes: 1 addition & 4 deletions whilom/Assets/whilomDebug.entitlements
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
<dict/>
</plist>

0 comments on commit b3b54b3

Please sign in to comment.