@oxiaom/adoremix 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/install.js +3 -1
package/package.json
CHANGED
package/src/install.js
CHANGED
|
@@ -196,7 +196,9 @@ async function runInstall(opts) {
|
|
|
196
196
|
deployWebuiIfPresent(workdir);
|
|
197
197
|
|
|
198
198
|
const config = require('./config');
|
|
199
|
-
|
|
199
|
+
// install 的 --force 只刷新二进制/资源,**不覆盖已存在的 config.ini**(避免客户升级时配置丢失)。
|
|
200
|
+
// 需要重建配置请用:adoremix config init --force
|
|
201
|
+
const cfgOk = await config.ensureConfig(workdir, { interactive: opts.interactive !== false, force: false });
|
|
200
202
|
if (!cfgOk) {
|
|
201
203
|
logger.warn('配置未生成。请稍后运行 adoremix config init');
|
|
202
204
|
}
|