From 081fc0e1aef2fdfa8e634ebafc45d65f96bf5e38 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 7 Jan 2015 16:22:11 -0800 Subject: [PATCH] Use icon from resources directory --- build/tasks/build-task.coffee | 1 - src/browser/auto-update-manager.coffee | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/tasks/build-task.coffee b/build/tasks/build-task.coffee index 52b3ffd8a..b29166ab5 100644 --- a/build/tasks/build-task.coffee +++ b/build/tasks/build-task.coffee @@ -25,7 +25,6 @@ module.exports = (grunt) -> cp 'atom.sh', path.join(appDir, 'atom.sh') cp 'package.json', path.join(appDir, 'package.json') - cp path.join('resources', 'atom.png'), path.join(appDir, 'atom.png') packageDirectories = [] nonPackageDirectories = [ diff --git a/src/browser/auto-update-manager.coffee b/src/browser/auto-update-manager.coffee index 3e7822fff..f1f782d10 100644 --- a/src/browser/auto-update-manager.coffee +++ b/src/browser/auto-update-manager.coffee @@ -89,7 +89,7 @@ class AutoUpdateManager dialog.showMessageBox type: 'info' buttons: ['OK'] - icon: path.join(process.resourcesPath, 'app', 'atom.png') + icon: path.resolve(__dirname, '..', '..', 'resources', 'atom.png') message: 'No update available.' title: 'No Update Available' detail: "Version #{@version} is the latest version." @@ -100,7 +100,7 @@ class AutoUpdateManager dialog.showMessageBox type: 'warning' buttons: ['OK'] - icon: path.join(process.resourcesPath, 'app', 'atom.png') + icon: path.resolve(__dirname, '..', '..', 'resources', 'atom.png') message: 'There was an error checking for updates.' title: 'Update Error' detail: message