Merge pull request #1485 from webtorrent/update-auto-launch
Update auto-launch
This commit is contained in:
2554
package-lock.json
generated
2554
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@@ -14,13 +14,13 @@
|
|||||||
"airplayer": "^2.0.0",
|
"airplayer": "^2.0.0",
|
||||||
"application-config": "^1.0.0",
|
"application-config": "^1.0.0",
|
||||||
"arch": "^2.0.0",
|
"arch": "^2.0.0",
|
||||||
"auto-launch": "^4.0.1",
|
"auto-launch": "^5.0.5",
|
||||||
"bitfield": "^1.0.2",
|
"bitfield": "^1.0.2",
|
||||||
"capture-frame": "^2.0.0",
|
"capture-frame": "^2.0.0",
|
||||||
"chokidar": "^2.0.4",
|
"chokidar": "^2.0.4",
|
||||||
"chromecasts": "^1.9.1",
|
"chromecasts": "^1.9.1",
|
||||||
"cp-file": "^6.0.0",
|
"cp-file": "^6.0.0",
|
||||||
"create-torrent": "^3.24.5",
|
"create-torrent": "^3.33.0",
|
||||||
"debounce": "^1.0.0",
|
"debounce": "^1.0.0",
|
||||||
"deep-equal": "^1.0.1",
|
"deep-equal": "^1.0.1",
|
||||||
"dlnacasts": "^0.1.0",
|
"dlnacasts": "^0.1.0",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"es6-error": "^4.0.0",
|
"es6-error": "^4.0.0",
|
||||||
"fn-getter": "^1.0.0",
|
"fn-getter": "^1.0.0",
|
||||||
"iso-639-1": "^1.2.1",
|
"iso-639-1": "^1.2.1",
|
||||||
"languagedetect": "^1.1.1",
|
"languagedetect": "^1.2.0",
|
||||||
"location-history": "^1.0.0",
|
"location-history": "^1.0.0",
|
||||||
"material-ui": "^0.17.0",
|
"material-ui": "^0.17.0",
|
||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^0.5.1",
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"react-tap-event-plugin": "^2.0.1",
|
"react-tap-event-plugin": "^2.0.1",
|
||||||
"rimraf": "^2.5.2",
|
"rimraf": "^2.5.2",
|
||||||
"run-parallel": "^1.1.6",
|
"run-parallel": "^1.1.6",
|
||||||
"semver": "^5.1.0",
|
"semver": "^5.6.0",
|
||||||
"simple-concat": "^1.0.0",
|
"simple-concat": "^1.0.0",
|
||||||
"simple-get": "^3.0.3",
|
"simple-get": "^3.0.3",
|
||||||
"srt-to-vtt": "^1.1.1",
|
"srt-to-vtt": "^1.1.1",
|
||||||
@@ -52,25 +52,25 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^9.0.0",
|
"babel-eslint": "^9.0.0",
|
||||||
"buble": "^0.19.3",
|
"buble": "^0.19.6",
|
||||||
"cross-zip": "^2.0.1",
|
"cross-zip": "^2.0.1",
|
||||||
"depcheck": "^0.6.4",
|
"depcheck": "^0.6.11",
|
||||||
"electron": "1.6.16",
|
"electron": "^1.8.8",
|
||||||
"electron-osx-sign": "^0.4.10",
|
"electron-osx-sign": "^0.4.11",
|
||||||
"electron-packager": "~8.5.1",
|
"electron-packager": "~8.5.1",
|
||||||
"electron-winstaller": "^2.6.4",
|
"electron-winstaller": "^2.6.4",
|
||||||
"gh-release": "^3.2.1",
|
"gh-release": "^3.4.0",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.0",
|
||||||
"nobin-debian-installer": "0.0.10",
|
"nobin-debian-installer": "0.0.10",
|
||||||
"nodemon": "^1.10.2",
|
"nodemon": "^1.18.8",
|
||||||
"opn": "^5.4.0",
|
"opn": "^5.4.0",
|
||||||
"plist": "^3.0.1",
|
"plist": "^3.0.1",
|
||||||
"pngjs": "^3.0.0",
|
"pngjs": "^3.0.0",
|
||||||
"run-series": "^1.1.4",
|
"run-series": "^1.1.4",
|
||||||
"spectron": "^3.3.0",
|
"spectron": "^3.3.0",
|
||||||
"standard": "*",
|
"standard": "*",
|
||||||
"tape": "^4.6.0",
|
"tape": "^4.9.1",
|
||||||
"walk-sync": "^0.3.1"
|
"walk-sync": "^0.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.0.0"
|
"node": ">=4.0.0"
|
||||||
|
|||||||
@@ -3,19 +3,11 @@ module.exports = {
|
|||||||
uninstall
|
uninstall
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = require('../config')
|
const { APP_NAME } = require('../config')
|
||||||
const AutoLaunch = require('auto-launch')
|
const AutoLaunch = require('auto-launch')
|
||||||
const { app } = require('electron')
|
|
||||||
|
|
||||||
// On Mac, work around a bug in auto-launch where it opens a Terminal window
|
|
||||||
// See https://github.com/Teamwork/node-auto-launch/issues/28#issuecomment-222194437
|
|
||||||
const appPath = process.platform === 'darwin'
|
|
||||||
? app.getPath('exe').replace(/\.app\/Content.*/, '.app')
|
|
||||||
: undefined // Use the default
|
|
||||||
|
|
||||||
const appLauncher = new AutoLaunch({
|
const appLauncher = new AutoLaunch({
|
||||||
name: config.APP_NAME,
|
name: APP_NAME,
|
||||||
path: appPath,
|
|
||||||
isHidden: true
|
isHidden: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user