@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.
- package/core.cjs +4 -4
- 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.
|
|
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
|
|
19118
|
-
const iconSrc =
|
|
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
|
|
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");
|