bitcrowd / tickety-tick

A browser extension that helps you name branches and write better commit messages
MIT License
57 stars 10 forks source link

Try and publish for new Safari #275

Closed pmeinhardt closed 3 years ago

pmeinhardt commented 3 years ago

Apparently Apple is finally bringing the standardized WebExtensions API to Safari, which means Safari users should be able to use Tickety-Tick (without us creating a special Safari App Extension implementation). 🙌

From the Apple macOS Big Sur feature overview:

screenshot

— https://www.apple.com/macos/big-sur/features/#safari

cc @planktonic

klappradla commented 3 years ago

Oh, looks very promising 👀

Some links:

Curious on how hard / easy it is to release those extensions though. Let's see 🤞

pmeinhardt commented 3 years ago

Notes:

  1. Build the extension: yarn build:chrome
  2. Convert for Safari: xcrun safari-web-extension-converter --project-location . dist/chrome, as per https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari
  3. In Safari's "Develop" menu, enable "Allow unsigned extensions" (https://developer.apple.com/documentation/safariservices/safari_app_extensions/building_a_safari_app_extension#2957926)
  4. Choose "Run" Cmd + R
  5. Enable the extension under "Preferences > Extensions"
  6. To rebuild, run: xcodebuild -project safari/tickety-tick.xcodeproj -scheme tickety-tick build

Browser support table (incomplete at the moment): https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs