Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

securing the source code in a node-webkit desktop application

first things first , i have seen nwsnapshot. and its not helping.

i am building an inventory management system as a desktop app using node-webkit . the project being built is using compoundjs (mvc javascript library). which have a definite folder structure (you know mvc) and multiple javascript files inside them.

the problem is nwsnapshot allows the app to have only a single snapshot file but the logic of application is spread over all the folders in different javascript files.

so how do i secure my source code before shipping it to client? Or any other work-around Or smarter way (yes, i know about obfuscating).

like image 868
sunnyvilles Avatar asked May 08 '13 06:05

sunnyvilles


1 Answers

You can use nodewebkit command called nwsnapshot to compile the javascript code into binary which will be loaded into the app without specifying any js file

nwsnapshot --extra-code application.js application.bin

in your package.json add this:

snapshot: 'application.bin'
like image 130
furiel Avatar answered Nov 16 '22 00:11

furiel