Update: The build script can now create a package using the macOS Notion installer as a source, in addition to the Windows one! New releases have been uploaded to GitHub.
Also, the package has been renamed from
notion-desktop, since it seems there’s already a package called
notion in the standard Ubuntu repositories.
Recently, I found myself wanting a small, portable laptop, and in the end decided on getting myself a ThinkPad T450. I had planned on creating a Hackintosh, though while macOS seemed to initially work on the laptop, it failed to boot up after I switched to what I thought was a macOS-compatible Wi-Fi card.
I ended up installing Linux instead – Pop!_OS to be specific – and to my surprise, found myself loving it more than ever. When I was younger, I tried out a variety of Linux distributions, or “distros” as they’re often called, but later ended up using macOS more for a number of reasons:
Firstly, I got a company MacBook to work on from Memiah, so I was already using macOS for half my professional work. And secondly, while I was using Linux at the time for my Gatsby work, I found most Linux desktop environments’ support for multiple monitors was mediocre at best.
In the end, I built a desktop Hackintosh for my Gatsby work, as well as personal use, and ended up loving it. As such, I was a bit disappointed at first when it seemed that macOS wouldn’t run on the ThinkPad. But I found that I loved using Linux again, and since I wasn’t hooking up the ThinkPad to external monitors, the problems I had faced previously didn’t become an issue.
One thing I missed, though, was the Notion desktop app. Notion can run in a web browser, though the app also provides offline support, as well as having that nice, satisfying feeling of being a “real” desktop app… or maybe that’s just me?
Some Linux clients for Notion already exist, such as Lotion, or the aptly named notion-app, though these are 3rd party wrappers rather than direct ports. I wanted my app to be as close as possible to the official app, so I directly the extracted resources from the Notion Windows to make this happen.
Notion, like many desktop apps such as Discord and Slack, is an Electron app, meaning that it’s built using cross-platform web technology. After extracting the app contents from the Windows installer, I was able to repack the app into a DEB package using Electron Packager along with Electron Installer Debian.
Eventually, I put together a build script to allow automated creation of DEB packages, compatible with Linux distros like Ubuntu, Linux Mint and Debian. Some things were missing from the Windows counterpart - spellchecking doesn’t work, and logging in with Google fails since the
notion: protocol isn’t understood on Linux. But apart from those things, it works great!