Skip to content

Commit

Permalink
fix(URGENT): build profile incorrectly set, added guard for AX permis…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
ejbills committed Sep 8, 2024
1 parent 6ac3ab2 commit f526bbd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
16 changes: 8 additions & 8 deletions DockDoor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.2.3;
CURRENT_PROJECT_VERSION = 1.2.5;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DockDoor/Preview Content\"";
DEVELOPMENT_TEAM = Z2NNLU4F7U;
DEVELOPMENT_TEAM = 2Q775S63Q3;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand All @@ -682,7 +682,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.5;
PRODUCT_BUNDLE_IDENTIFIER = com.ethanbills.DockDoor;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand All @@ -699,10 +699,10 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.2.3;
CURRENT_PROJECT_VERSION = 1.2.5;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DockDoor/Preview Content\"";
DEVELOPMENT_TEAM = Z2NNLU4F7U;
DEVELOPMENT_TEAM = 2Q775S63Q3;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
Expand All @@ -716,7 +716,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.5;
PRODUCT_BUNDLE_IDENTIFIER = com.ethanbills.DockDoor;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down Expand Up @@ -789,7 +789,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1.2.3;
CURRENT_PROJECT_VERSION = 1.2.5;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"DockDoor/Preview Content\"";
DEVELOPMENT_TEAM = 2Q775S63Q3;
Expand All @@ -806,7 +806,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.5;
"OTHER_SWIFT_FLAGS[arch=*]" = "-DAPPSTORE_BUILD";
PRODUCT_BUNDLE_IDENTIFIER = com.ethanbills.DockDoor;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "5fc4c2aa42edb488e007e13a069cfdeaf611955f2706f9ec4a5ce0f8a3f1ff8c",
"originHash" : "c96de4c92fd792039b1dafb4e816bdf618ec8c8b059d78d4252381e2384b8b31",
"pins" : [
{
"identity" : "confettiswiftui",
Expand Down
9 changes: 9 additions & 0 deletions DockDoor/Utilities/DockObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ final class DockObserver {

let dockAppElement = AXUIElementCreateApplication(dockAppPID)

guard AXIsProcessTrusted() else {
MessageUtil.showAlert(
title: "Accessibility Permissions Required",
message: "Please enable accessibility permissions in System Preferences > Security & Privacy > Privacy > Accessibility.",
actions: [.ok]
)
return
}

guard let children = try? dockAppElement.children(), let axList = children.first(where: { element in
try! element.role() == kAXListRole
}) else {
Expand Down
10 changes: 5 additions & 5 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<channel>
<title>DockDoor</title>
<item>
<title>1.2.3</title>
<pubDate>Thu, 05 Sep 2024 15:31:06 -0700</pubDate>
<title>1.2.5</title>
<pubDate>Sun, 08 Sep 2024 12:22:20 -0700</pubDate>
<sparkle:releaseNotesLink>https://dockdoor.net/CHANGELOG.html</sparkle:releaseNotesLink>
<sparkle:version>1.2.3</sparkle:version>
<sparkle:shortVersionString>1.2.3</sparkle:shortVersionString>
<sparkle:version>1.2.5</sparkle:version>
<sparkle:shortVersionString>1.2.5</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/ejbills/DockDoor/releases/latest/download/DockDoor.dmg" length="2642601" type="application/octet-stream" sparkle:edSignature="FRWj+vUYx4lO+OIUk820ZDQe4/fhJLpepFNVddKBseSFTG7LxWBscHee0+niLvFD1c4CVk4bKJyMvl8/OO4jBQ=="/>
<enclosure url="https://github.com/ejbills/DockDoor/releases/latest/download/DockDoor.dmg" length="5788813" type="application/octet-stream" sparkle:edSignature="EctgaIWEBwBPzRrfct7KgXobEHLpEtfTn4X9dwegQ0of8f8Gag16G63KaC2r04m3CybhkBI49xpW/nDgHN/uAg=="/>
</item>
</channel>
</rss>

0 comments on commit f526bbd

Please sign in to comment.