dsh-sansheng-liubu/scripts/workbench-install.mjs

18 lines
896 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env node
// 退役说明(0.13.0+):朝堂面板已并回主包 `dsh-sansheng-liubu-mode`。
// 本脚本不再安装、卸载或改写任何 profile 文件,只打印迁移说明。
//
// 安装/修复/迁移是独立授权操作;自检请用 `node scripts/workbench-preflight.mjs`。
console.error([
'dsh-sansheng-liubu-workbench 已退役:面板已并回主包 dsh-sansheng-liubu-mode。',
'不要再安装或启用独立的 workbench 包,也不需要再运行本脚本的 on/off。',
'迁移:',
' 1. 从 profile 的 dependencies / dsh.profile.bundles 中移除 dsh-sansheng-liubu-workbench(若存在);',
' 2. 安装或更新 dsh-sansheng-liubu-mode;',
' 3. 彻底退出并重启 DSH;',
' 4. 运行 node scripts/workbench-preflight.mjs 做严格只读自检。',
'本脚本不会改动任何文件。',
].join('\n'))
process.exitCode = 2