{"size": 540, "ext": "js", "max_stars_repo_path": "scripts/npm-postinstall.js", "max_stars_repo_name": "enaldick/node-xfy", "max_stars_repo_stars_event_min_datetime": "2017-05-04T03:58:09.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-09T18:30:48.000Z", "max_issues_repo_path": "scripts/npm-postinstall.js", "max_issues_repo_name": "enaldick/node-xfy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/npm-postinstall.js", "max_forks_repo_name": "enaldick/node-xfy", "max_forks_repo_forks_event_min_datetime": "2017-05-17T12:21:19.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-14T07:01:53.000Z"}
{"max_stars_count": 16, "max_issues_count": null, "max_forks_count": 5, "avg_line_length": 31.7647058824, "max_line_length": 109, "alphanum_fraction": 0.6185185185}
/**
 * Created by weiqun on 2017-03-29.
 */
var os = require('os');
var exec = require('child_process').exec;

var destBinPath = "build\\Release\\"

if(os.platform()==="win32"){
    exec('xcopy src\\sdk\\win32\\bin\\* '+destBinPath+' /s/Y',{encoding:"gbk"},function(error,stdout,stderr){
        if(error)console.log('exec exit:',error);
    })
}else if(os.platform()==="linux"){
    exec('cp src\\sdk\\linux\\bin '+destBinPath+' -R',{encoding:"gbk"},function(error,stdout,stderr){
        if(error)console.log('exec exit:',error);
    })
}