Open devnoname120 opened 2 years ago
Started work here: https://github.com/qwerty-fr/qwerty-fr/tree/macOS-pkg
TODO:
osascript -e 'tell application "System Preferences" to reveal anchor "InputSources" of pane id "com.apple.preference.keyboard"' -e 'tell application "System Preferences" to activate'
as a postscript.codesign
.Postponed:
Done in https://github.com/qwerty-fr/qwerty-fr/commit/95b70bbd7bcc0ec815c748f6f162fd29c827e5c2.
I decided to add a DMG in addition to PKG to make it easier for some users to install it.
It will make it easier to install than asking the user to manually copy the bundle at the right place.
See:
With a DMG it's not possible to add a shortcut to the user's
/Library
because the path is unknown. Both symbolic links and aliases on macOS require the path to be fully resolved, so we can't use e.g.~
.Examples of PKG:
Random notes (tested on macOS Monterey 12.1) for a postinstall script:
open "x-apple.systempreferences:com.apple.preference.keyboard?InputSources"
only open the main settings screen.open -b com.apple.systempreferences /System/Library/PreferencePanes/Keyboard.prefPane
opens the keyboard settings properly, but doesn't open theInput Sources
tab.osascript -e 'tell application "System Preferences" to reveal anchor "InputSources" of pane id "com.apple.preference.keyboard"' -e 'tell application "System Preferences" to activate'
which I cobbled up seems to work.