@ngcodes/ccpm 0.4.4 → 0.4.6
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 +13 -0
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -70,8 +70,21 @@ async function download(url, dest) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function warnIfUnverifiedPlatform(os) {
|
|
74
|
+
if (os === "darwin") return;
|
|
75
|
+
const yellow = "\x1b[33m";
|
|
76
|
+
const reset = "\x1b[0m";
|
|
77
|
+
process.stderr.write(
|
|
78
|
+
`${yellow}ccpm: ${os} support is experimental.${reset} ` +
|
|
79
|
+
`OAuth set-default / auth backup / status are verified only on macOS today. ` +
|
|
80
|
+
`API-key profiles work everywhere. Track Linux/Windows readiness at ` +
|
|
81
|
+
`https://github.com/${REPO}/issues\n`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
73
85
|
async function main() {
|
|
74
86
|
const { os, arch } = getPlatform();
|
|
87
|
+
warnIfUnverifiedPlatform(os);
|
|
75
88
|
const version = await getLatestVersion();
|
|
76
89
|
|
|
77
90
|
const ext = os === "windows" ? "zip" : "tar.gz";
|