mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
13 lines
395 B
CoffeeScript
13 lines
395 B
CoffeeScript
|
path = require 'path'
|
||
|
|
||
|
module.exports = (grunt) ->
|
||
|
grunt.registerTask 'set-exe-icon', 'Set icon of the exe', ->
|
||
|
done = @async()
|
||
|
|
||
|
shellAppDir = grunt.config.get('atom.shellAppDir')
|
||
|
shellExePath = path.join(shellAppDir, 'edgehill.exe')
|
||
|
iconPath = path.resolve('resources', 'win', 'edgehill.ico')
|
||
|
|
||
|
rcedit = require('rcedit')
|
||
|
rcedit(shellExePath, {'icon': iconPath}, done)
|