Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,25 @@ jobs:
xcode-version: '26.3'

- name: Show toolchain
run: swift --version
run: |
xcodebuild -version
xcrun --sdk macosx --show-sdk-version
swift --version

- name: Build (debug)
run: swift build -v
- name: Check whitespace
run: git diff --check

- name: Run tests
run: swift test

- name: Build direct app
run: swift build

- name: Build MAS configuration
run: swift build -Xswiftc -DMAS

- name: Build app bundle
run: VERSION=0.0.0 BUILD=ci ./scripts/build_app.sh

- name: Verify universal executable
run: /usr/bin/lipo packaging/Pesty.app/Contents/MacOS/Pesty -verify_arch arm64 x86_64
6 changes: 4 additions & 2 deletions Sources/Pesty/Monitor/PasteService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ enum PasteService {

@discardableResult
static func ensureAccessibility(prompt: Bool) -> Bool {
let key = kAXTrustedCheckOptionPrompt.takeUnretainedValue() as String
let opts = [key: prompt] as CFDictionary
// The SDK imports kAXTrustedCheckOptionPrompt as shared mutable state,
// which is unsafe under complete concurrency checking. Its documented
// dictionary-key value is stable, so avoid touching that global.
let opts = ["AXTrustedCheckOptionPrompt": prompt] as CFDictionary
return AXIsProcessTrustedWithOptions(opts)
}
#endif
Expand Down