@blutui/courier 1.1.1 → 1.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/package.json +2 -1
- package/scripts/postinstall.js +11 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blutui/courier",
|
|
3
3
|
"description": "The command line tool for Blutui",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"author": "Blutui",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"postinstall": "node scripts/postinstall.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"bin-links": "^5.0.0",
|
|
17
18
|
"decompress": "^4.2.1",
|
|
18
19
|
"https-proxy-agent": "^7.0.6",
|
|
19
20
|
"node-fetch": "^3.3.2"
|
package/scripts/postinstall.js
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
|
-
import fs from "fs";
|
|
6
|
-
import os from "os";
|
|
7
|
-
import path from "path";
|
|
8
|
-
import fetch from "node-fetch";
|
|
9
5
|
import { Agent } from "https";
|
|
6
|
+
import { createHash } from "crypto";
|
|
10
7
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
11
8
|
import { pipeline } from "stream/promises";
|
|
12
|
-
import
|
|
9
|
+
import binLinks from "bin-links";
|
|
13
10
|
import decompress from "decompress";
|
|
11
|
+
import fetch from "node-fetch";
|
|
12
|
+
import fs from "fs";
|
|
13
|
+
import os from "os";
|
|
14
|
+
import path from "path";
|
|
14
15
|
|
|
15
16
|
const ARCH_MAPPING = {
|
|
16
17
|
x64: "x86_64", // amd64
|
|
@@ -135,6 +136,11 @@ async function main() {
|
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
await binLinks({
|
|
140
|
+
path: path.resolve("."),
|
|
141
|
+
pkg: { ...pkg, bin: { courier: binPath } },
|
|
142
|
+
});
|
|
143
|
+
|
|
138
144
|
console.info("Installed Blutui Courier successfully");
|
|
139
145
|
}
|
|
140
146
|
|