Merge pull request #7170 from atrotors/fixIconProblem

Fixed missing icon when building from source
This commit is contained in:
Kevin Sawicki 2015-06-08 14:50:31 -07:00
commit e2d82202c7
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ module.exports = (grunt) ->
'ctags-linux'
'ctags-win32.exe'
'**/node_modules/spellchecker/**'
'atom.png'
]
unpack = "{#{unpack.join(',')}}"

View File

@ -46,7 +46,7 @@ module.exports = (grunt) ->
desktopInstallFile = path.join(installDir, 'share', 'applications', 'atom.desktop')
{description} = grunt.file.readJSON('package.json')
iconName = path.join(shareDir, 'resources', 'app', 'resources', 'atom.png')
iconName = path.join(shareDir, 'resources', 'app.asar.unpacked', 'resources', 'atom.png')
executable = path.join(shareDir, 'atom')
template = _.template(String(fs.readFileSync(desktopFile)))
filled = template({description, iconName, executable})