@ccdevkit/ccyolo 0.6.0 → 0.8.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/install.js +4 -4
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -73,8 +73,8 @@ function extractTarGz(buffer, destDir) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
async function install() {
|
|
76
|
-
console.
|
|
77
|
-
console.
|
|
76
|
+
console.warn(`Downloading ccyolo for ${goos}/${goarch}...`);
|
|
77
|
+
console.warn(`URL: ${downloadUrl}`);
|
|
78
78
|
|
|
79
79
|
try {
|
|
80
80
|
// Ensure bin directory exists
|
|
@@ -83,7 +83,7 @@ async function install() {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
const buffer = await makeRequest(downloadUrl);
|
|
86
|
-
console.
|
|
86
|
+
console.warn(`Downloaded ${buffer.length} bytes`);
|
|
87
87
|
|
|
88
88
|
extractTarGz(buffer, binDir);
|
|
89
89
|
|
|
@@ -92,7 +92,7 @@ async function install() {
|
|
|
92
92
|
fs.chmodSync(binaryPath, 0o755);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
console.
|
|
95
|
+
console.warn(`Installed ccyolo to ${binaryPath}`);
|
|
96
96
|
} catch (error) {
|
|
97
97
|
console.error(`Failed to install ccyolo: ${error.message}`);
|
|
98
98
|
console.error('');
|