@pixeljuggle/project-context 0.0.11 → 0.0.13
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/install.js +3 -6
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -20,7 +20,8 @@ async function main() {
|
|
|
20
20
|
let goArch = arch === "x64" ? "amd64" : arch;
|
|
21
21
|
if (goArch === "arm") goArch = "arm64";
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
// ← THIS WAS THE BUG: now matches your actual release filenames (hyphen)
|
|
24
|
+
const archiveName = `${binaryName}_${version}_${goOs}-${goArch}.tar.gz`;
|
|
24
25
|
const url = `https://github.com/${repo}/releases/download/v${version}/${archiveName}`;
|
|
25
26
|
|
|
26
27
|
const binDir = path.join(__dirname, "bin");
|
|
@@ -29,9 +30,8 @@ async function main() {
|
|
|
29
30
|
const targetBinary = platform === "win32" ? `${binaryName}.exe` : binaryName;
|
|
30
31
|
const targetPath = path.join(binDir, targetBinary);
|
|
31
32
|
|
|
32
|
-
console.log(
|
|
33
|
+
console.log(`📥 Downloading ${binaryName} ${version} for ${goOs}-${goArch}...`);
|
|
33
34
|
|
|
34
|
-
// Download with redirect support
|
|
35
35
|
const response = await new Promise((resolve, reject) => {
|
|
36
36
|
https
|
|
37
37
|
.get(url, (res) => {
|
|
@@ -68,8 +68,5 @@ main()
|
|
|
68
68
|
.then(() => process.exit(0))
|
|
69
69
|
.catch((err) => {
|
|
70
70
|
console.error("❌ Failed to install project-context:", err.message);
|
|
71
|
-
console.error(
|
|
72
|
-
` → Make sure you have released v${version} on GitHub with the .tar.gz files`,
|
|
73
|
-
);
|
|
74
71
|
process.exit(1);
|
|
75
72
|
});
|
package/package.json
CHANGED