Remove redundant path in .desktop for Linux

The install-task has two instructions that add an extra "resources" to the iconName directory and thus the icon doesn't work. The resulting nylus.desktop has an invalid path for the icon.
This commit is contained in:
Dave Perdue 2015-12-16 11:59:01 -08:00
parent 60d6f672d1
commit 2fc66a42fa

View file

@ -33,7 +33,7 @@ module.exports = (grunt) ->
else
binDir = path.join(installDir, 'bin')
shareDir = path.join(installDir, 'share', 'nylas')
iconName = path.join(shareDir, 'resources', 'app', 'resources', 'nylas.png')
iconName = path.join(shareDir, 'resources', 'app', 'nylas.png')
mkdir binDir
# Note that `N1.sh` can't be renamed `nylas.sh` because `apm`
@ -50,7 +50,7 @@ module.exports = (grunt) ->
desktopInstallFile = path.join(installDir, 'share', 'applications', 'nylas.desktop')
{description} = grunt.file.readJSON('package.json')
iconName = path.join(shareDir, 'resources', 'app', 'resources', 'nylas.png')
iconName = path.join(shareDir, 'resources', 'app', 'nylas.png')
installDir = path.join(installDir, '.') # To prevent "Exec=/usr/local//share/nylas/nylas"
template = _.template(String(fs.readFileSync(desktopFile)))
filled = template({description, installDir, iconName})