Xcrun altool -notarize-app -primary-bundle-id ".cpuusage" -username " -password -file 5 Staple Notarization Info build/streamdeckcpuusage.xcarchiveĬd build/streamdeckcpuusage.xcarchive/Products/Library/Bundles/ 2 Code Sign with Developer ID Application (replace with your IDs)Ĭodesign -deep -s "Developer ID Application: folivora.AI GmbH (DAFVSXZ82P)" -f BTTStreamDeckPluginCPUUsage.bttstreamdeckplugin 3 Zip Up For Notarizationĭitto -c -k -keepParent -rsrc BTTStreamDeckPluginCPUUsage.bttstreamdeckplugin 4 Send for Notarization (this references an application specific password for my Apple Account from the keychain) Xcodebuild archive -scheme BTTStreamDeckPluginCPUUsage -configuration Release -archivePath. If you have any questions: 1 Build/Archive You need an Apple developer account to do this. If you want to distribute plugins to other users, you must notarize them - otherwise they will not run. Action plugins will appear in the standard action selector popup. You can configure these plugins in BetterTouchTool - they will be listed under "Touch Bar Plugins" in the Touch Bar widget selector popover. You can install the plugins into BTT by double-clicking them or by copying them to ~/Library/Application Support/BetterTouchTool/Plugins To see the plugin bundles, select the "Products" group in the XCode side-bar - you can then right-click them and select "Show in Finder". Running it will open a simple sample application that loads the three sample plugins and renders them to the Touch Bar - however it does not offer the customization options BTT offers.Clone this project ( git clone Open the project in Xcode.There is a example action extension included in this project (BTTDisplayNotificationActionPlugin), it shows the basic concepts and can be used as a starting point. When using Swift to develop the plugins, make sure to set the principal class to the fully qualified name ($(PRODUCT_MODULE_NAME).PluginPrincipalClass).the principal class in the ist must be set to the main class that conforms to the BTTActionPluginInterface protocol.it must conform to the BTTActionPluginInterface protocol ( ).its ist must contain these three keys: BTTPluginName, BTTPluginIdentifier, BTTPluginIcon, and BTTPluginType which must be set to "Action".its wrapper extension must be ".bttactionplugin".It's easy to create such an action extension: They allow you to extend the list of available predefined ations with your own custom ones. Starting with BTT 3.226 action plugins are supported. ![]() Please see the example plugins for details! Action Plugin Development When using Swift to develop the plugins, make sure to set the principal class to the fully qualified name (PluginName.PluginPrincipalClass).the principal class in the ist must be set to the main class that conforms to the BTTTouchBarPluginInterface protocol.it must conform to the BTTTouchBarPluginInterface protocol ( ).its ist must contain these three keys: BTTPluginName, BTTPluginIdentifier, BTTPluginIcon.its wrapper extension must be ".btttouchbarplugin". ![]() Touch Bar Plugin RequirementsĪ BetterTouchTool Touch Bar plugin must fulfil these requirements: This repository contains basic example plugins for all three of these types.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |