@dsh-sup/dsh-core-linux-x64 0.1.4-BETA.1 → 0.1.5-BETA.1

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.
Files changed (2) hide show
  1. package/core.cjs +4 -4
  2. package/package.json +1 -1
package/core.cjs CHANGED
@@ -147,7 +147,7 @@ var require_version = __commonJS({
147
147
  var fs2 = require("node:fs");
148
148
  var path2 = require("node:path");
149
149
  function guardVersion() {
150
- if (true) return String("0.1.4-BETA.1");
150
+ if (true) return String("0.1.5-BETA.1");
151
151
  try {
152
152
  return JSON.parse(fs2.readFileSync(path2.join(__dirname, "..", "..", "package.json"), "utf8")).version || "unknown";
153
153
  } catch {
@@ -19114,11 +19114,11 @@ function installDesktopEntry() {
19114
19114
  try {
19115
19115
  if (!fs.existsSync(DESKTOP_TEMPLATE)) return;
19116
19116
  fs.mkdirSync(ICON_DIR, { recursive: true });
19117
- const shellSrc = process.env.DSH_SHELL_DIR && fs.existsSync(path.join(process.env.DSH_SHELL_DIR, "src-tauri")) ? path.join(process.env.DSH_SHELL_DIR, "src-tauri") : path.join(ROOT, ".shell-work", "src-tauri");
19118
- const iconSrc = fs.existsSync(shellSrc) ? path.join(shellSrc, "icons", "128x128.png") : null;
19117
+ const shellDir = process.env.DSH_SHELL_DIR || null;
19118
+ const iconSrc = shellDir ? path.join(shellDir, "src-tauri", "icons", "128x128.png") : null;
19119
19119
  const iconDst = path.join(ICON_DIR, "dsh-supervisor.png");
19120
19120
  if (iconSrc && fs.existsSync(iconSrc)) fs.copyFileSync(iconSrc, iconDst);
19121
- else console.warn("[install] \u672A\u627E\u5230\u58F3\u56FE\u6807\uFF08" + path.join(shellSrc, "icons", "128x128.png") + "\uFF09\uFF0C\u684C\u9762\u56FE\u6807\u7F3A\u5931\uFF1B\u8BF7\u5B89\u88C5\u58F3\u540E\u91CD\u88C5\u6216\u5FFD\u7565\u3002");
19121
+ else console.warn("[install] \u672A\u627E\u5230\u58F3\u56FE\u6807\uFF08\u53EF\u8BBE DSH_SHELL_DIR \u6307\u5411\u58F3 checkout\uFF09\uFF0C\u684C\u9762\u56FE\u6807\u7F3A\u5931\uFF1B\u4E0D\u5F71\u54CD\u529F\u80FD\u3002");
19122
19122
  fs.mkdirSync(DESKTOP_DIR, { recursive: true });
19123
19123
  const entry = fs.readFileSync(DESKTOP_TEMPLATE, "utf8").replace(/@HOME@/g, os.homedir());
19124
19124
  const dst = path.join(DESKTOP_DIR, "dsh-supervisor.desktop");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-sup/dsh-core-linux-x64",
3
- "version": "0.1.4-BETA.1",
3
+ "version": "0.1.5-BETA.1",
4
4
  "description": "DSH lifecycle guard core (Node launcher) for linux-x64 — requires Node >=18.",
5
5
  "license": "UNLICENSED",
6
6
  "os": [