@uued/dsh-desktop-shell-linux-x64 0.1.0
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/bin/dsh-desktop-shell +0 -0
- package/package.json +14 -0
- package/scripts/chmod.js +13 -0
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uued/dsh-desktop-shell-linux-x64",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Prebuilt dsh desktop shell binary for linux-x64. Installed automatically by @uued/dsh-desktop — no compilation needed.",
|
|
5
|
+
"os": ["linux"],
|
|
6
|
+
"cpu": ["x64"],
|
|
7
|
+
"main": "bin/dsh-desktop-shell",
|
|
8
|
+
"files": ["bin", "scripts"],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"postinstall": "node ./scripts/chmod.js"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"publishConfig": { "access": "public" }
|
|
14
|
+
}
|
package/scripts/chmod.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// postinstall: ensure the shipped binary is executable (POSIX). No-op on
|
|
2
|
+
// Windows; silently tolerates a missing binary (the package skeleton ships the
|
|
3
|
+
// binary only after CI copies it in — the platform package is never published
|
|
4
|
+
// without it).
|
|
5
|
+
const { chmodSync } = require("node:fs");
|
|
6
|
+
const { join } = require("node:path");
|
|
7
|
+
|
|
8
|
+
const bin = join(__dirname, "..", "bin", process.platform === "win32" ? "dsh-desktop-shell.exe" : "dsh-desktop-shell");
|
|
9
|
+
try {
|
|
10
|
+
chmodSync(bin, 0o755);
|
|
11
|
+
} catch {
|
|
12
|
+
/* binary absent or already executable — fine */
|
|
13
|
+
}
|