multi-terminals 0.5.6 → 0.5.13
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.
|
Binary file
|
package/README.md
CHANGED
package/bin/multi-terminals.mjs
CHANGED
|
@@ -173,7 +173,7 @@ function runInstaller({ silent, update = false }) {
|
|
|
173
173
|
return
|
|
174
174
|
}
|
|
175
175
|
if (update) console.log(`正在覆盖安装 MultiTerminals ${version}(不需要先卸载)…`)
|
|
176
|
-
else console.log(silent ? '
|
|
176
|
+
else console.log(silent ? '正在静默安装…' : '正在打开安装向导…')
|
|
177
177
|
const result = spawnSync(installer, installerArgs, { stdio: 'inherit', windowsHide: false })
|
|
178
178
|
if (result.error) fail(`could not run the installer: ${result.error.message}`)
|
|
179
179
|
// NSIS reports its own failures in a dialog and still exits 0 often enough that the
|
|
@@ -251,6 +251,8 @@ switch (command) {
|
|
|
251
251
|
const current = installedVersion()
|
|
252
252
|
if (compareVersions(current, version) < 0) {
|
|
253
253
|
console.log(`检测到已安装 ${current ?? '(版本未知)'},将覆盖升级到 ${version}。`)
|
|
254
|
+
} else if (compareVersions(current, version) > 0) {
|
|
255
|
+
console.log(`已安装的 ${current} 比这个包(${version})新,将降级覆盖安装。`)
|
|
254
256
|
}
|
|
255
257
|
if (!(await confirmUpgrade(current))) {
|
|
256
258
|
console.log('已取消,什么都没有改动。')
|
package/package.json
CHANGED
|
Binary file
|