@matrix-ai/matrix 1.1.54 → 1.1.55
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/package.json +12 -12
- package/postinstall.mjs +4 -4
package/package.json
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.55",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"matrix-windows-x64": "1.1.
|
|
13
|
-
"matrix-darwin-x64": "1.1.
|
|
14
|
-
"matrix-linux-arm64": "1.1.
|
|
15
|
-
"matrix-darwin-x64-baseline": "1.1.
|
|
16
|
-
"matrix-linux-x64-baseline-musl": "1.1.
|
|
17
|
-
"matrix-linux-x64-musl": "1.1.
|
|
18
|
-
"matrix-linux-arm64-musl": "1.1.
|
|
19
|
-
"matrix-linux-x64": "1.1.
|
|
20
|
-
"matrix-darwin-arm64": "1.1.
|
|
21
|
-
"matrix-linux-x64-baseline": "1.1.
|
|
22
|
-
"matrix-windows-x64-baseline": "1.1.
|
|
12
|
+
"matrix-windows-x64": "1.1.55",
|
|
13
|
+
"matrix-darwin-x64": "1.1.55",
|
|
14
|
+
"matrix-linux-arm64": "1.1.55",
|
|
15
|
+
"matrix-darwin-x64-baseline": "1.1.55",
|
|
16
|
+
"matrix-linux-x64-baseline-musl": "1.1.55",
|
|
17
|
+
"matrix-linux-x64-musl": "1.1.55",
|
|
18
|
+
"matrix-linux-arm64-musl": "1.1.55",
|
|
19
|
+
"matrix-linux-x64": "1.1.55",
|
|
20
|
+
"matrix-darwin-arm64": "1.1.55",
|
|
21
|
+
"matrix-linux-x64-baseline": "1.1.55",
|
|
22
|
+
"matrix-windows-x64-baseline": "1.1.55"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -49,8 +49,8 @@ function detectPlatformAndArch() {
|
|
|
49
49
|
|
|
50
50
|
function findBinary() {
|
|
51
51
|
const { platform, arch } = detectPlatformAndArch()
|
|
52
|
-
const packageName = `
|
|
53
|
-
const binaryName = platform === "windows" ? "
|
|
52
|
+
const packageName = `matrix-${platform}-${arch}`
|
|
53
|
+
const binaryName = platform === "windows" ? "matrix.exe" : "matrix"
|
|
54
54
|
|
|
55
55
|
try {
|
|
56
56
|
// Use require.resolve to find the package
|
|
@@ -89,7 +89,7 @@ function symlinkBinary(sourcePath, binaryName) {
|
|
|
89
89
|
const { targetPath } = prepareBinDirectory(binaryName)
|
|
90
90
|
|
|
91
91
|
fs.symlinkSync(sourcePath, targetPath)
|
|
92
|
-
console.log(`
|
|
92
|
+
console.log(`matrix binary symlinked: ${targetPath} -> ${sourcePath}`)
|
|
93
93
|
|
|
94
94
|
// Verify the file exists after operation
|
|
95
95
|
if (!fs.existsSync(targetPath)) {
|
|
@@ -112,7 +112,7 @@ async function main() {
|
|
|
112
112
|
console.log(`Platform binary verified at: ${binaryPath}`)
|
|
113
113
|
console.log("Wrapper script will handle binary execution")
|
|
114
114
|
} catch (error) {
|
|
115
|
-
console.error("Failed to setup
|
|
115
|
+
console.error("Failed to setup matrix binary:", error.message)
|
|
116
116
|
process.exit(1)
|
|
117
117
|
}
|
|
118
118
|
}
|