diff --git a/resources/win/atom.png b/resources/win/atom.png new file mode 100755 index 000000000..f3be42c3d Binary files /dev/null and b/resources/win/atom.png differ diff --git a/tasks/set-exe-icon-task.coffee b/tasks/set-exe-icon-task.coffee index 09bc2b67b..6ffe6ed40 100644 --- a/tasks/set-exe-icon-task.coffee +++ b/tasks/set-exe-icon-task.coffee @@ -1,12 +1,18 @@ path = require 'path' module.exports = (grunt) -> + {cp} = require('./task-helpers')(grunt) + grunt.registerTask 'set-exe-icon', 'Set icon of the exe', -> done = @async() shellAppDir = grunt.config.get('atom.shellAppDir') + appDir = grunt.config.get('atom.appDir') shellExePath = path.join(shellAppDir, 'atom.exe') iconPath = path.resolve(__dirname, '..', 'resources', 'win', 'atom.ico') + pngPath = path.resolve(__dirname, '..', 'resources', 'win', 'atom.png') + + cp pngPath, path.join(appDir, 'atom.png') rcedit = require('rcedit') rcedit(shellExePath, {'icon': iconPath}, done)