Skip to content

Instantly share code, notes, and snippets.

@yassineaboukir
Created June 12, 2019 01:10
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save yassineaboukir/1ce61baa93a6006ddf16e4a9d7322415 to your computer and use it in GitHub Desktop.
Save yassineaboukir/1ce61baa93a6006ddf16e4a9d7322415 to your computer and use it in GitHub Desktop.
Obtain the source code of Electron applications
# 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
Copy link

ghost commented Oct 8, 2019

Not working on GitKraken

@zhil
Copy link

zhil commented Jan 26, 2020

@yassineaboukir looks like its not working any more. Cant find any asar files in some electrol applications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment