Ship PNG format of icon under windows.

This commit is contained in:
Cheng Zhao 2013-11-11 21:11:32 +08:00
parent 55da08c69e
commit cbee5efee6
2 changed files with 6 additions and 0 deletions

BIN
resources/win/atom.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

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