Ship PNG format of icon for all platforms.

This commit is contained in:
Cheng Zhao 2013-11-11 21:29:47 +08:00
parent ef0022f4da
commit 21edc61384
3 changed files with 3 additions and 6 deletions

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -22,6 +22,9 @@ module.exports = (grunt) ->
cp 'atom.sh', path.join(appDir, 'atom.sh')
cp 'package.json', path.join(appDir, 'package.json')
iconPath = path.resolve(__dirname, '..', 'resources', 'atom.png')
cp iconPath, path.join(appDir, 'atom.png')
packageDirectories = []
nonPackageDirectories = [
'benchmark'

View File

@ -1,18 +1,12 @@
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)