Skip to content

Commit a93c6fd

Browse files
committed
update js version
1 parent aba74ef commit a93c6fd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

npm/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "jetpp",
3-
"version": "0.1.1",
3+
"version": "0.1.4",
44
"main": "index.js",
55
"author": "Vincent Chan",
66
"license": "MIT",
77
"bin": {
88
"jetpp": "./index.js"
9+
},
10+
"scripts": {
11+
"install": "node scripts/download_lib.js"
912
}
1013
}

npm/scripts/download_lib.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ const downloadChecksumUrl = name => `${downloadUrl(name)}.SHA256`;
1414

1515
const libsName = [
1616
'jetpp.node',
17-
'libjetpackd.dylib',
18-
'libjemalloc.2.dylib',
1917
];
2018

19+
if (platform === 'darwin') {
20+
libsName.push('libjetpackd.dylib');
21+
libsName.push('libjemalloc.2.dylib');
22+
}
23+
2124
function getDownloadPath(name) {
2225
const tmpDir = os.tmpdir();
2326
const projectDir = path.join(tmpDir, version, 'jetpack-node');

0 commit comments

Comments
 (0)