Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Commit

Permalink
增加打包
Browse files Browse the repository at this point in the history
  • Loading branch information
Srar committed Mar 21, 2018
1 parent c1ac0df commit 59e20cd
Show file tree
Hide file tree
Showing 6 changed files with 580 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ typings/

build/

output/
output/

sstap.exe
13 changes: 12 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
module.exports = require(__dirname + '/build/Release/addon.node');
var fs = require("fs");
var loaded = false;

if(fs.existsSync(__dirname + "/build/Release/addon.node")) {
loaded = true;
module.exports = require(__dirname + "/build/Release/addon.node");
}

if(fs.existsSync("addon.node") && !loaded) {
loaded = true;
module.exports = require(__dirname + "addon.node");
}
Loading

0 comments on commit 59e20cd

Please sign in to comment.