xinfer-ai 0.12.1 → 0.12.2
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 +2 -1
- package/scripts/install.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xinfer-ai",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
|
+
"assetVersion": "0.12.1",
|
|
4
5
|
"description": "xInfer — a high-performance LLM inference engine in Rust with CUDA/Metal acceleration",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"homepage": "https://github.com/guoqingbao/xinfer#readme",
|
package/scripts/install.js
CHANGED
|
@@ -125,7 +125,7 @@ function expectedSha(manifest, artifactName) {
|
|
|
125
125
|
if (!trimmed) continue;
|
|
126
126
|
const parts = trimmed.split(/\s+/);
|
|
127
127
|
const checksum = parts[0];
|
|
128
|
-
const name = parts[parts.length - 1].replace(/^\*/, "");
|
|
128
|
+
const name = parts[parts.length - 1].replace(/^\*/, "").replace(/^\.\//, "");
|
|
129
129
|
if (name === artifactName) return checksum;
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
@@ -133,7 +133,7 @@ function expectedSha(manifest, artifactName) {
|
|
|
133
133
|
|
|
134
134
|
async function main() {
|
|
135
135
|
const target = targetTriple();
|
|
136
|
-
const version = process.env.XINFER_INSTALL_VERSION || pkg.version;
|
|
136
|
+
const version = process.env.XINFER_INSTALL_VERSION || pkg.assetVersion || pkg.version;
|
|
137
137
|
const tag = process.env.XINFER_INSTALL_TAG || `v${version}`;
|
|
138
138
|
const base =
|
|
139
139
|
process.env.XINFER_INSTALL_BASE_URL ||
|