@kairainy/ck 0.1.6 → 0.1.8
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/ck.exe +0 -0
- package/package.json +1 -1
- package/scripts/postinstall.js +11 -1
package/bin/ck.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -154,7 +154,17 @@ async function main() {
|
|
|
154
154
|
copyLocal();
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
try {
|
|
158
|
+
await downloadRelease();
|
|
159
|
+
} catch (err) {
|
|
160
|
+
if (fs.existsSync(dest)) {
|
|
161
|
+
console.warn(
|
|
162
|
+
`[ck] Release download failed; using bundled binary.\n${err.message}`
|
|
163
|
+
);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
throw err;
|
|
167
|
+
}
|
|
158
168
|
}
|
|
159
169
|
|
|
160
170
|
main().catch((err) => {
|