Skip to content

Commit 90a9e19

Browse files
committed
add install script
1 parent ca6166f commit 90a9e19

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Wrapper around the WMI client. Linux and Windows WMI clients are supported.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "npm test"
7+
"test": "npm test",
8+
"install": "node scripts/install.js"
89
},
910
"repository": {
1011
"type": "git",

scripts/install.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var fs = require('fs');
2+
var path = require('path');
3+
4+
if (process.platform === 'linux') {
5+
fs.chmodSync(path.join(__dirname, '..', 'bin', 'wmic_centos_x64'), 777);
6+
fs.chmodSync(path.join(__dirname, '..', 'bin', 'wmic_ubuntu_x64'), 777);
7+
}

0 commit comments

Comments
 (0)