Summary:
Just in case someone needs to make the package a bit smaller, I decided to write this tutorial.
What files are required to run the game:
This is how a deployed RMMV game folder looks like. Maybe RMMZ is similar but we are talking about nw.js here, so the game files are not important.
swiftshader folder is usually empty, so leaving it won't do any harm to the total size.
You can delete all files inside locales folder, except en-US.pak
nw.dll and credits.html is growing bigger and bigger because new features are being added, but you can't really remove them.
You can also insert a line in package.json to ensure en-US is used just in case. But I didn't see any side effect without it. See below:
JSON:
{
"name": "game name here",
"main": "www/index.html",
"js-flags": "--expose-gc",
"chromium-args": "--lang=en-US",
"window": {
"title": "fill this if you like",
"toolbar": false,
"width": 816,
"height": 624,
"icon": "www/icon/icon.png"
}
}
复制代码
What does the folder look like before:
For reference, this is how the folder look like before some files are removed.
Please notice some files may be different in different versions.
This is the locales folder.
The tutorial was written when Nw.js 0.89.0 was released. It is not granted nw.js won't change in the future.