multi-terminals 0.5.6 → 0.5.12

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/README.md CHANGED
@@ -44,7 +44,6 @@ multi-terminals --help
44
44
  `--dry-run` 只打印将要执行的命令行,不真的执行任何东西。
45
45
  `-y` / `--yes` 跳过升级前的确认;非交互环境(管道、CI)本来就不问。
46
46
 
47
-
48
47
  ## 升级
49
48
 
50
49
  装上新版本就行,**不需要先卸载**:
@@ -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 ? 'installing (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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-terminals",
3
- "version": "0.5.6",
3
+ "version": "0.5.12",
4
4
  "description": "轻量的 Windows 多项目终端工作台:关窗口不会结束终端",
5
5
  "keywords": [
6
6
  "terminal",
Binary file