| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c44af23 commit e9bdcf5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,7 +81,8 @@ function build() { | |||
| 81 | 81 | var builder = "node-gyp"; | |
| 82 | 82 | var debug = (process.env.BUILD_DEBUG ? " --debug" : ""); | |
| 83 | 83 | var target = ""; | |
| 84 | - var distUrl; | ||
| 84 | + var distUrl = ""; | ||
| 85 | + var runtime = ""; | ||
| 85 | 86 | ||
| 86 | 87 | process.argv.forEach(function(arg) { | |
| 87 | 88 | if (~arg.indexOf("electronVersion")) { | |
@@ -94,12 +95,13 @@ function build() { | |||
| 94 | 95 | ||
| 95 | 96 | if (electronVersion) { | |
| 96 | 97 | target = "--target=" + electronVersion; | |
| 97 | - distUrl = "--dist-url=https://gh-contractor-zcbenz.s3." + | ||
| 98 | - "amazonaws.com/atom-shell/dist"; | ||
| 98 | + distUrl = "--dist-url=https://atom.io/download/atom-shell"; | ||
| 99 | + runtime = "--runtime=electron"; | ||
| 99 | 100 | } | |
| 100 | 101 | else if (nwjsVersion) { | |
| 101 | 102 | builder = "nw-gyp"; | |
| 102 | 103 | target = "--target=" + nwjsVersion; | |
| 104 | + runtime = "--runtime=node-webkit" | ||
| 103 | 105 | } | |
| 104 | 106 | ||
| 105 | 107 | var home = process.platform == "win32" ? | |
@@ -112,11 +114,14 @@ function build() { | |||
| 112 | 114 | "rebuild", | |
| 113 | 115 | debug, | |
| 114 | 116 | target, | |
| 115 | - distUrl | ||
| 117 | + distUrl, | ||
| 118 | + runtime | ||
| 116 | 119 | ] | |
| 117 | - .join(" ") | ||
| 118 | - .trim() | ||
| 119 | - .split(" "); | ||
| 120 | + .filter(function(arg) { | ||
| 121 | + return arg; | ||
| 122 | + }); | ||
| 123 | + | ||
| 124 | + console.log(args); | ||
| 120 | 125 | return new Promise(function(resolve, reject) { | |
| 121 | 126 | var child = cp.spawn(cmd, args, opts); | |
| 122 | 127 | child.on("close", function(code) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments