Issue #92: Merge with master & exclude some of the proposed changes.

This commit is contained in:
Borewit
2018-05-23 20:19:28 +02:00
68 changed files with 495 additions and 159 deletions

View File

@@ -40,9 +40,9 @@ function installDarwin () {
// File handlers are defined in `Info.plist`.
}
function uninstallDarwin () { }
function uninstallDarwin () {}
const EXEC_COMMAND = [process.execPath]
const EXEC_COMMAND = [ process.execPath, '--' ]
if (!config.IS_PRODUCTION) {
EXEC_COMMAND.push(config.ROOT_PATH)
@@ -312,7 +312,7 @@ function installLinux () {
'webtorrent-desktop.desktop'
)
fs.mkdirp(path.dirname(desktopFilePath))
fs.writeFile(desktopFilePath, desktopFile, (err) => {
fs.writeFile(desktopFilePath, desktopFile, err => {
if (err) return log.error(err.message)
})
}
@@ -334,9 +334,9 @@ function installLinux () {
'icons',
'webtorrent-desktop.png'
)
mkdirp(path.dirname(iconFilePath), (err) => {
mkdirp(path.dirname(iconFilePath), err => {
if (err) return log.error(err.message)
fs.writeFile(iconFilePath, iconFile, (err) => {
fs.writeFile(iconFilePath, iconFile, err => {
if (err) log.error(err.message)
})
})