mirror of
https://github.com/atom/atom.git
synced 2026-02-03 03:05:05 -05:00
14 lines
449 B
CoffeeScript
14 lines
449 B
CoffeeScript
path = require 'path'
|
|
|
|
module.exports = (grunt) ->
|
|
grunt.registerTask 'set-exe-icon', 'Set icon of the exe', ->
|
|
done = @async()
|
|
|
|
channel = grunt.config.get('atom.channel')
|
|
shellAppDir = grunt.config.get('atom.shellAppDir')
|
|
shellExePath = path.join(shellAppDir, 'atom.exe')
|
|
iconPath = path.resolve('resources', 'app-icons', channel, 'atom.ico')
|
|
|
|
rcedit = require('rcedit')
|
|
rcedit(shellExePath, {'icon': iconPath}, done)
|