mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 17:13:45 +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'
|
path = require 'path'
|
||||||
|
|
||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
|
{cp} = require('./task-helpers')(grunt)
|
||||||
|
|
||||||
grunt.registerTask 'set-exe-icon', 'Set icon of the exe', ->
|
grunt.registerTask 'set-exe-icon', 'Set icon of the exe', ->
|
||||||
done = @async()
|
done = @async()
|
||||||
|
|
||||||
shellAppDir = grunt.config.get('atom.shellAppDir')
|
shellAppDir = grunt.config.get('atom.shellAppDir')
|
||||||
|
appDir = grunt.config.get('atom.appDir')
|
||||||
shellExePath = path.join(shellAppDir, 'atom.exe')
|
shellExePath = path.join(shellAppDir, 'atom.exe')
|
||||||
iconPath = path.resolve(__dirname, '..', 'resources', 'win', 'atom.ico')
|
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 = require('rcedit')
|
||||||
rcedit(shellExePath, {'icon': iconPath}, done)
|
rcedit(shellExePath, {'icon': iconPath}, done)
|
||||||
|
Loading…
Reference in New Issue
Block a user