mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
Ship PNG format of icon for all platforms.
This commit is contained in:
parent
ef0022f4da
commit
21edc61384
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
@ -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'
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user