-
-
Save hybridherbst/b900c75d0ed85ac6b722de34701f14fa to your computer and use it in GitHub Desktop.
Obtain the source code of Electron applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open terminal and install asar node module globally | |
$ npm install -g asar | |
# Go into the app’s directory, in our case it’s Slack | |
$ cd /Applications/Slack.app/Contents/Resources | |
# Create a directory to paste the content of app | |
$ mkdir example-sourcecode | |
# Unpack the app.asar file in the above directory using asar | |
$ asar extract app.asar example-sourcecode | |
# Boom cd into it and see the source code of the app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment