Skip to content

macOS Notes

HuskyHacks edited this page Mar 23, 2022 · 6 revisions

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.

Security Exceptions

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.

Screenshot_20220322_224604

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.

Screenshot_20220322_225001

And even then, macOS will still ask you if you want to open it.

Screenshot_20220322_231723

Okay, yeah, not the greatest deployment plan. But okay for testing!

But what if we actually want to deploy this thing?

Deployment with Platypus

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:

  1. Download Platypus.
  2. Open it up. Platypus will also be blocked by default. Right-click->Open to actually open it.
  3. 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.

Screenshot_20220322_234216

  1. 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!

Screenshot_20220322_235102

  1. Hit build, and voilà!

Screenshot_20220322_235237

  1. Runs with a double-click, and...

Screenshot_20220322_235431

Clone this wiki locally