MV A plugin to strip out assets at export, for a demo

I'm not sure how difficult this is, but I wanted to ask first.

I use a plugin called MaterialGuard in my project. This plugin features a list of assets (images, etc.) which it forces the exporter to export, even if the "strip out unused stuff" option is enabled. It's handy for some assets which are used by plugins etc. that aren't used in the core game, some of which can't be simply put in an unused common event or similar.

I was wondering, would it be possible to do the opposite of this? An "ExcludeAssets" plugin?

This plugin would contain a list of assets, which could include tilesets or data files like maps - and when enabled, it makes sure that the exporter DOES strip out these items on-export.

The purpose of this is for a demo; I could set it up so that all the maps not featured in the demo would be stripped out at export. Previously for this kind of thing I've duplicated my project folder and manually stripped out the files, but it'd be great to automate this process.
you can't change the editor.
and while the editor has options to include additional content by javascript (options that should have been used by every plugin needing files), it does not have options to exclude content that is indeed used.

what is possible should be a plugin that deletes map files and their resources on first execution - then you export with the setting for the demo limit and run the game once to get the reduced demo.
don't know how easy or difficult it would be, but that way it could work.
you can't change the editor.
and while the editor has options to include additional content by javascript (options that should have been used by every plugin needing files), it does not have options to exclude content that is indeed used.

what is possible should be a plugin that deletes map files and their resources on first execution - then you export with the setting for the demo limit and run the game once to get the reduced demo.
don't know how easy or difficult it would be, but that way it could work.

Thanks! Yeah, that would be fine as a workaround, as you'd have the same end-result.

In retrospect though, this makes me think - I could probably write a Windows BAT file that does the same thing.

Original thread: https://forums.rpgmakerweb.com/threads/a-plugin-to-strip-out-assets-at-export-for-a-demo.134009/