leonardoamx / pomodairo

An Adobe Air application for working with the Pomodoro technique. Originally hosted at code.google.com/p/pomodairo
23 stars 3 forks source link

[Workaround] Running on modern Macs #166

Open EvanBalster opened 1 year ago

EvanBalster commented 1 year ago

Adobe AIR seems to be semi-abandonware, having been handed off to HARMAN from Adobe, and I was disappointed to see that even after finding a way to download the runtime, the pomodairo app won't run on modern versions of Mac OS X.

...But don't despair!

A bit of digging revealed that this problem could be solved by code signing the app, but there's an additional complication (related to 'resource forks' in the Adobe Air bundle). Fortunately, it seems to be possible to fix this with a few console commands so long as Xcode is installed.

First you'll need to install the latest Adobe AIR runtime and then install pomodairo to Applications. Then enter these commands in terminal to strip the resource forks from the app and impose a local code signature on it. The app bundle will only be signed for use on the current computer.

cd /Applications
xattr -cr pomodairo.app
codesign --force --deep --sign - pomodairo.app
open pomodairo.app

Reference: https://developer.apple.com/library/archive/qa/qa1940/_index.html