Use icon from resources directory

This commit is contained in:
Kevin Sawicki
2015-01-07 16:22:11 -08:00
parent a6cc6afb16
commit 081fc0e1ae
2 changed files with 2 additions and 3 deletions

View File

@@ -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 = [

View File

@@ -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