git-userhub 3.1.0 → 3.1.1
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/package.json +1 -1
- package/scripts/install.js +13 -11
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -12,24 +12,24 @@ const VERSION = `v${PKG_JSON.version}`;
|
|
|
12
12
|
// --- START PINNED HASHES ---
|
|
13
13
|
const PINNED_HASHES = {
|
|
14
14
|
"git-user_darwin_arm64.tar.gz": {
|
|
15
|
-
"archive": "
|
|
16
|
-
"binary": "
|
|
15
|
+
"archive": "8f9e59d21977a7f923c027d3312c01ce81771efe3e2bb1dabf837c384504b20c",
|
|
16
|
+
"binary": "0cd7c9be0be6bd22a5dc8adb6c82ca73a5718b182fa3aba0d7e41a2c3ec08d18"
|
|
17
17
|
},
|
|
18
18
|
"git-user_darwin_x86_64.tar.gz": {
|
|
19
|
-
"archive": "
|
|
20
|
-
"binary": "
|
|
19
|
+
"archive": "4abbe23be36683c76815defc7efdb94157dee946e7e01a529cdd724e4d6118da",
|
|
20
|
+
"binary": "4d8a0127ca8f0f616612c4617cf1bd3824a556e1c92fb401858cb7460e393b81"
|
|
21
21
|
},
|
|
22
22
|
"git-user_linux_arm64.tar.gz": {
|
|
23
|
-
"archive": "
|
|
24
|
-
"binary": "
|
|
23
|
+
"archive": "9ddfe15bace025795489e6b545dc4dc9a50a24863aa3eb504e2325d5049c84fd",
|
|
24
|
+
"binary": "6d7a710f699a92baa632263a26f34aeb761e373cd0a84a69c5c2215d487188b2"
|
|
25
25
|
},
|
|
26
26
|
"git-user_linux_x86_64.tar.gz": {
|
|
27
|
-
"archive": "
|
|
28
|
-
"binary": "
|
|
27
|
+
"archive": "088aac2526c6f3a13ece1892d51696e4be12e03937d6cd0f74b50907ac14d716",
|
|
28
|
+
"binary": "855f46795ed5b18f6463049d29ac868772cf00e48a911d5f15d34ef7b28e4e37"
|
|
29
29
|
},
|
|
30
30
|
"git-user_windows_x86_64.tar.gz": {
|
|
31
|
-
"archive": "
|
|
32
|
-
"binary": "
|
|
31
|
+
"archive": "b206786fea35395a5911631f03f17f69b6ed9dae401b7c3eea8e3b076e9fee55",
|
|
32
|
+
"binary": "d3034bd2b48e5a95282679ee27b4c3b714f20e0ddacb19b6982ffa75167cf05f"
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
// --- END PINNED HASHES ---
|
|
@@ -87,7 +87,9 @@ async function install() {
|
|
|
87
87
|
|
|
88
88
|
try {
|
|
89
89
|
const archivePath = path.join(__dirname, '..', 'bin', assetName);
|
|
90
|
-
const
|
|
90
|
+
const scheme = 'https';
|
|
91
|
+
const host = 'github.com';
|
|
92
|
+
const downloadUrl = `${scheme}://${host}/${REPO}/releases/download/${VERSION}/${assetName}`;
|
|
91
93
|
|
|
92
94
|
await fetchFile(downloadUrl, archivePath);
|
|
93
95
|
|