-
Notifications
You must be signed in to change notification settings - Fork 127
macOS Notes
As of version 1.1.0
("Age of Steel"), OffensiveNotion can execute on macOS! However, there are a few special considerations when running ON on a Mac. Let's review.
If we run the raw binary offensive_notion
from the terminal, we'll be warned about execution due to the untrusted nature of the executable.
So to run ON in this way, you'll need to allow untrusted applications. This is done in System Preferences -> Security & Privacy. After the first attempt to run, this Preferences Pane will preload ON for potential exception. Click "Allow Anyway" to continue.
And even then, macOS will still ask you if you want to open it.
Okay, yeah, not the greatest deployment plan. But okay for testing!
But what if we actually want to deploy this thing?
To make this happen, you will need a Mac. Or you'll need to virtualize one, which is in fact possible.
Platypus is a tried-and-true tool for packaging shell scripts as real-deal .app
packages. Here's how it works:
- Download Platypus.
- Open it up. Platypus will also be blocked by default. Right-click->Open to actually open it.
- Platypus has several config options. Let's start with the icon. Grab the
notion.ico
from this repository and use it for the icon field.
- Platypus is designed to run shell scripts, but of course OffensiveNotion isn't one. So instead, you'll need to write a tiny script to work with ON itself. Something like:
#!/bin/zsh
./offensive_notion
Don't worry about pathing. We'll be bundling everything together.
5. Set the name and identifier as you'd like, and don't forget to include offensive_notion
!
- Hit build, and voilà!
- Runs with a double-click, and...