I’d like to ask how did you manage to obfuscate the Game Dev Tycoon ? With it being node-webkit app I would have expected tons of forks everywhere since you can’t hide the code. I love the idea of making a web app as a desktop software and I have been wondering myself for a long time on how to protect these kind of apps.
I’ve been recommended by the customer service to tag this guy @PatrickKlug
They can’t obfuscate their main HTML, and they haven’t either But the JavaScript is compressed and obfuscated. However, its not closed completely which makes it wonderful for modders!
@FlyingEagle as @Stian said, they didn’t compress/obfuscate their HTML, but if you wanted to you could use a obfuscater online. although i would recommend you keep a copy of the un-obfuscated code
You could also look into the V8-snapshot feature of node-webkit.
In GDT we simply went with Google Closure Compiler. We also employed some custom tricks to obfuscate it better but, tellingly, we move more and more towards not obfuscating the game.
In the latest releases we don’t even package our assets anymore. All open for anyone to dig through on their hdd.
Personally I think the open nature of HTML and JavaScript code can be an incredible asset, instead of a disadvantage. Just look at our modding community!