Electron is a popular platform to publish desktop apps these days. Many people are familiar with popular applications like VSCode or Slack that are written in Electron, but is there a way I can check on my own to know if an app was built using Electron?
Yes. In fact, I created a quick video of the process (macOS only):
How to know if a desktop app uses #Electron pic.twitter.com/5tAprex2BV
— Cameron Nokes (@ccnokes) December 10, 2019
I was surprised at how many views it got (I know, it’s not that many in the grand scheme of things but I’m small-time so it was a lot for me).
Written out, the above process is this:
- Right click
.app
file - Click “Show Package Contents”
- Navigate into Contents
- Navigate into Frameworks
- Check if there’s a
Electron Framework.framework
file
Why does this work?
macOS apps are actually a directory that simply looks like a file. Application bundles follow a specific format. A “framework”, which is a dynamic shared library, will always reside in Contents/Frameworks
. You can read more about macOS app bundles on Wikipedia or Apple’s developer docs.
That process might sound tedious if you want to check all of your applications at once. So, that’s why I created a bash script that checks for you 😎: