建议引擎组在后续版本中的build-runtime.js文件中加入下面相关代码,可以是所有的配置都可以走命名行。现在我都是手动改的。
function parseOptions(options) {
RUNTIME_CONFIG.package = options.package || RUNTIME_CONFIG.package;
RUNTIME_CONFIG.name = options.name || RUNTIME_CONFIG.name;
RUNTIME_CONFIG.icon = options.icon || RUNTIME_CONFIG.icon;
RUNTIME_CONFIG.logLevel = options.logLevel || RUNTIME_CONFIG.logLevel;
RUNTIME_CONFIG.versionName = options.versionName || RUNTIME_CONFIG.versionName;
RUNTIME_CONFIG.versionCode = options.versionCode || RUNTIME_CONFIG.versionCode;
RUNTIME_CONFIG.minPlatformVersion = options.minPlatformVersion || RUNTIME_CONFIG.minPlatformVersion;
RUNTIME_CONFIG.privatePath = options.privatePath || RUNTIME_CONFIG.privatePath;
RUNTIME_CONFIG.certificatePath = options.certificatePath || RUNTIME_CONFIG.certificatePath;
RUNTIME_CONFIG.tinyPackageServer = options.tinyPackageServer || RUNTIME_CONFIG.tinyPackageServer;
RUNTIME_CONFIG.tinyPackageMode = options.tinyPackageMode == undefined ? RUNTIME_CONFIG.tinyPackageMode : options.tinyPackageMode;
RUNTIME_CONFIG.useDebugKey = options.useDebugKey == undefined ? RUNTIME_CONFIG.useDebugKey : options.useDebugKey;
}