10
bin/cmd.js
Executable file
10
bin/cmd.js
Executable file
@@ -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)
|
||||
})
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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",
|
||||
@@ -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",
|
||||
@@ -64,5 +64,8 @@
|
||||
"start": "electron .",
|
||||
"test": "standard",
|
||||
"update-authors": "./bin/update-authors.sh"
|
||||
},
|
||||
"bin": {
|
||||
"webtorrent-app": "./bin/cmd.js"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user