Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to protect source code in electron project

I build my first electron app but now I wonder how to protect the source code to be view by other developers.

The official doc says :

To protect your app's resources and source code from the users, you can choose to package your app into an asar archive with little changes to your source code.

So far the best I can think of is uglyfy the source-code and package it into a asar file, but the asar file is just an archive and can be easily be extracted. I don't see how having that make your code "protected from the user"

Any ideas ?

like image 727
0x1gene Avatar asked May 11 '15 12:05

0x1gene


1 Answers

There is no official way to copy-protect your code at the moment, sorry - if you want to do this, you'll have to invent your own way (or just not worry about it)

like image 170
Ana Betts Avatar answered Sep 23 '22 23:09

Ana Betts