Skip to content

Commit

Permalink
Merge pull request #250 from rom1504/add_binary
Browse files Browse the repository at this point in the history
add binary, fix #247
  • Loading branch information
feross committed Mar 28, 2016
2 parents 2341749 + 391a200 commit 46bc1ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions bin/cmd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node

var electron = require('electron-prebuilt')
var proc = require('child_process')
var path = require('path')

var child = proc.spawn(electron, [path.join(__dirname, '..')], {stdio: 'inherit'})
child.on('close', function (code) {
process.exit(code)
})
2 changes: 1 addition & 1 deletion bin/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var all = {
prune: true,

// The Electron version with which the app is built (without the leading 'v')
version: pkg.devDependencies['electron-prebuilt']
version: pkg.dependencies['electron-prebuilt']
}

var darwin = {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"debug": "^2.2.0",
"drag-drop": "^2.11.0",
"electron-localshortcut": "^0.6.0",
"electron-prebuilt": "0.37.2",
"hyperx": "^2.0.2",
"main-loop": "^3.2.0",
"mkdirp": "^0.5.1",
Expand All @@ -34,7 +35,6 @@
"devDependencies": {
"electron-osx-sign": "^0.3.0",
"electron-packager": "^5.0.0",
"electron-prebuilt": "0.37.2",
"electron-winstaller": "^2.0.5",
"gh-release": "^2.0.3",
"plist": "^1.2.0",
Expand Down Expand Up @@ -64,5 +64,8 @@
"start": "electron .",
"test": "standard",
"update-authors": "./bin/update-authors.sh"
},
"bin": {
"webtorrent-app": "./bin/cmd.js"
}
}

0 comments on commit 46bc1ba

Please sign in to comment.