Which files can you remove from nw.js
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.
本贴来自国际rpgmaker官方论坛作者:utunnels处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/which-files-can-you-remove-from-nw-js.171148/
页:
[1]