Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Simplify icon param for Electron Packager
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Sep 16, 2017
1 parent 299b9ed commit c26b510
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions script/lib/package-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function () {
electronVersion: CONFIG.appMetadata.electronVersion,
extendInfo: path.join(CONFIG.repositoryRootPath, 'resources', 'mac', 'atom-Info.plist'),
helperBundleId: 'com.github.atom.helper',
icon: getIcon(),
icon: path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom'),
name: appName,
out: CONFIG.buildOutputPath,
overwrite: true,
Expand Down Expand Up @@ -120,19 +120,6 @@ function getAppName () {
}
}

function getIcon () {
switch (process.platform) {
case 'darwin':
return path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom.icns')
case 'linux':
// Don't pass an icon, as the dock/window list icon is set via the icon
// option in the BrowserWindow constructor in atom-window.coffee.
return null
default:
return path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom.ico')
}
}

function runPackager (options) {
return electronPackager(options)
.then(packageOutputDirPaths => {
Expand Down

0 comments on commit c26b510

Please sign in to comment.