From 02c8cd682d7f1cf78821eaed49856014b298d0d1 Mon Sep 17 00:00:00 2001 From: atrotors Date: Tue, 9 Jun 2015 01:00:45 +1000 Subject: [PATCH] fixed missing icon when building from source --- build/tasks/generate-asar-task.coffee | 1 + build/tasks/install-task.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/tasks/generate-asar-task.coffee b/build/tasks/generate-asar-task.coffee index 3de5f73b6..bb00c6b0f 100644 --- a/build/tasks/generate-asar-task.coffee +++ b/build/tasks/generate-asar-task.coffee @@ -15,6 +15,7 @@ module.exports = (grunt) -> 'ctags-linux' 'ctags-win32.exe' '**/node_modules/spellchecker/**' + 'atom.png' ] unpack = "{#{unpack.join(',')}}" diff --git a/build/tasks/install-task.coffee b/build/tasks/install-task.coffee index 71d3c4ae8..8db654941 100644 --- a/build/tasks/install-task.coffee +++ b/build/tasks/install-task.coffee @@ -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})