mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-27 08:32:30 +03:00
Ship PNG format of icon under windows.
This commit is contained in:
parent
55da08c69e
commit
cbee5efee6
BIN
resources/win/atom.png
Executable file
BIN
resources/win/atom.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user