how to "build" binary files with cordova?

Unqou

Veteran
Veteran
Joined
Mar 28, 2016
Messages
40
Reaction score
5
First Language
Italian
Primarily Uses
RMMV
I tested a simple game deployment (game scratch with anything) after setting cordova base install on Ubuntu

-> Cordova installed with npm
-> Android Studio installed in HOME (sdk installed by Studio in $HOME/Android/Sdk)
-> gradle downloaded from gradle site

what I "discovered" (not a surprise for the experts here) is that the packaged apk contains all the "www" assets exported by RpgMaker mv is left untouched (so open, unprotected).

I read in a post here (can't find it now) that you could use nw.js to "build" javascript files into .bin files and deploy .bin files instead of .js, but the nw.js is system-dependant.

But, as far as I understand, nw.js does not have a counterpart in Android so, if I understand correctly, you can't use nw.js to create bins that are correctly read in Android app. right?

Is there any way to make a minimal layer of protection? Or is it possible to find a solution, for example, embedding in a fake-c++ source in order to embed code in a binary form?

Are there any other system that allows you to have a minimal layer of protection of your deployed app and its contents?

I know that no system is 100% secure, and I am mostly an opensource fan myself. But however I am searching a way to think about how to avoid possible steal by any malicious user.

Thank.
 

Unqou

Veteran
Veteran
Joined
Mar 28, 2016
Messages
40
Reaction score
5
First Language
Italian
Primarily Uses
RMMV
Bumping my question (1)
 

RyanBram

Veteran
Veteran
Joined
May 13, 2012
Messages
238
Reaction score
275
First Language
Indonesian
Primarily Uses
RMMV
Hi, Unqou,

I know that no system is 100% secure, and I am mostly an opensource fan myself. But however I am searching a way to think about how to avoid possible steal by any malicious user.
  1. For multimedia assets (img, audio) you can use built in RPG Maker MV encryption
  2. For javascript, please try my bat script (download). Just extract the archive into your project folder which contain Game.rpgproject, and double click [Compile].bat . A folder compiledjs will be created. You can copy and paste the result into js/plugin folder.
  3. Test your project to find any error after encryption

Disclaimer:
- This solution is not 100% secure.
- Always backup your project before doing any encryption
 

Unqou

Veteran
Veteran
Joined
Mar 28, 2016
Messages
40
Reaction score
5
First Language
Italian
Primarily Uses
RMMV
Yeah... the idea is to have a project directory separated from the deploying of the project itself. I can't use your batch file (I am under linux) but I think I am understanding how it works. And I think your batch contains a tiny error: the mode is not "SIMPLE_OPTIMIZIATIONS" but "SIMPLE" (checked on the jar with --help). However thank you very much because you give me what I need (the jar file itself I didn't have). I will test it and see if works as expected. Very thank.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Based on this screenshot alone, which one would you sell, and which to equip?
Some random sketch-letons.

I have a strong urge to make a tutorial video of all the random things I've learned since starting on my game. little helpful tips and stuff that may help people.
Do you guys think it's better to have all members in your team from the beginning (then you can pick who battles) or you gain team members as the story goes?
PL: Patch polonizujący do RPG Makera 2003 prawie gotowy! Mamy przetłumaczoną bazę danych (projekt), polskie fonty, wiadomości walki i jakieś 90% edytora.
Do przetłumacznia pozostało te 10% edytora i plik pomocy. Niedługo więcej informacji!

Forum statistics

Threads
107,479
Messages
1,029,971
Members
139,607
Latest member
James19851989
Top