@harvey-au/hover 0.1.1 → 0.1.4
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 -1
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -61,7 +61,7 @@ function fetch(url) {
|
|
|
61
61
|
async function main() {
|
|
62
62
|
const version = getVersion();
|
|
63
63
|
const asset = getAssetName();
|
|
64
|
-
const url = `https://github.com/${REPO}/releases/download/v${version}/${asset}`;
|
|
64
|
+
const url = `https://github.com/${REPO}/releases/download/cli-v${version}/${asset}`;
|
|
65
65
|
|
|
66
66
|
console.log(
|
|
67
67
|
`Downloading hover v${version} for ${process.platform}-${process.arch}...`
|
|
@@ -92,6 +92,9 @@ async function main() {
|
|
|
92
92
|
fs.unlinkSync(tmpFile);
|
|
93
93
|
fs.chmodSync(BIN_PATH, 0o755);
|
|
94
94
|
}
|
|
95
|
+
if (!fs.existsSync(BIN_PATH)) {
|
|
96
|
+
throw new Error(`Binary not found after extraction: ${BIN_PATH}`);
|
|
97
|
+
}
|
|
95
98
|
console.log("hover installed successfully.");
|
|
96
99
|
}
|
|
97
100
|
|