Skip to content

Commit

Permalink
Install step by step
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Jan 28, 2025
1 parent a95b465 commit 5bbdc74
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/voiceover-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ jobs:
- name: Configure the system to support the AT Driver server
env:
DEBUG: "*"
working-directory: node_modules/.bin
run: ./at-driver install --unattended
run: ./install-for-macos.sh
30 changes: 30 additions & 0 deletions install-for-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -e

(
cd node_modules/@bocoup/macos-at-driver-server/MacOSATDriverServer/Build/Debug

# Remove quarantine
xattr -r -d com.apple.quarantine MacOSATDriverServer.app

auval -v ausp atdg BOCU || true

# Register extension
/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Versions/Current/Support/lsregister \
-f -R -trusted MacOSATDriverServer.app

auval -v ausp atdg BOCU || true
)

# Enable extension
pluginkit -e use -i com.bocoup.MacOSATDriverServer.MacOSATDriverServerExtension

auval -v ausp atdg BOCU || true

defaults read com.apple.Accessibility SpeechVoiceIdentifierForLanguage || true

# Set system voice
defaults write com.apple.Accessibility SpeechVoiceIdentifierForLanguage '{2 = {en = "com.bocoup.MacOSATDriverServer.MacOSATDriverServerExtension.MacOSATDriverServerExtension";};}'

auval -v ausp atdg BOCU || true

0 comments on commit 5bbdc74

Please sign in to comment.