Custom Deployment

Hi, if I want to customize the deployment of my MV games, how do I do it?

For example, if it's deployed on web, I want to automatically exclude all .m4a files (double audio files make the total game size too big).

I also want to minify+obfuscate the JS code if it's possible.

I'm used to Javascript development (minify+obfuscate all code after build). I'm wondering if this is against TOS or if it'll break the game. If it's ok, is there a tutorial for that? Or google keywords to search, at least.

Thank you 😀
Hi, if I want to customize the deployment of my MV games, how do I do it?
I don't believe you can.
For example, if it's deployed on web, I want to automatically exclude all .m4a files (double audio files make the total game size too big).
This is pretty simple to do manually, right? Just go into the audio folders, sort by file type, select all the .m4a's and trash 'em. For that matter, unless you're planning to make mobile deployments, you don't need those at all.
I also want to minify+obfuscate the JS code if it's possible.
Any software you've used before to do this should work the same.
This is pretty simple to do manually, right? Just go into the audio folders, sort by file type, select all the .m4a's and trash 'em. For that matter, unless you're planning to make mobile deployments, you don't need those at all.
I want to inject a script to modify the default editor's deployment so the exclusion of some files are done automatically during deployment. Ideally, it'd function like .gitignore where you can state the file paths/names to exclude.
Same with minify+obfuscate: do it all automatically during deployment.

Is it possible to do this?
you can also use this [tool] after deployment and render your js useless,
but they still work inside the game if you let them in that folder.

it doesn't protect your png, but there is another tool for that.
but most let m4a if they play teh game on a browser from a mobile,
otherwise, they get an error or get no sound.
I want to inject a script to modify the default editor's deployment...Is it possible to do this?
I thought I answered this clearly in my first reply - no.

No plugins can modify the behavior of the editor, they can only add code to your game when it's being run.

You could achieve something like this on your computer's end by writing a batch file that deletes files of the appropriate extension and runs your obfuscating program on the plugins folder (or possibly even configure it as a shell script that will automatically do these things as files appear in the appropriate folder).
I thought I answered this clearly in my first reply - no.

No plugins can modify the behavior of the editor, they can only add code to your game when it's being run.

You could achieve something like this on your computer's end by writing a batch file that deletes files of the appropriate extension and runs your obfuscating program on the plugins folder (or possibly even configure it as a shell script that will automatically do these things as files appear in the appropriate folder).
Oh alright then, shell script it is 🙂

Thank you for the help!

Original thread: https://forums.rpgmakerweb.com/threads/custom-deployment.142311/