Create WebTorrent app icon

For #120.
This commit is contained in:
Feross Aboukhadijeh
2016-03-10 00:09:21 -08:00
parent 7b715622eb
commit 7c94c4166c
6 changed files with 19 additions and 9 deletions

BIN
WebTorrent.icns Normal file

Binary file not shown.

BIN
WebTorrent.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

BIN
WebTorrent.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@@ -56,6 +56,9 @@ var darwin = {
// The bundle identifier to use in the application helper's plist (OS X only).
'helper-bundle-id': 'io.webtorrent.app.helper',
// Application icon.
icon: path.join(__dirname, '..', 'WebTorrent.icns')
}
var win32 = {
@@ -87,10 +90,15 @@ var win32 = {
// the original filename, without extension. This string is required.
InternalName: 'WebTorrent'
},
// Application icon.
icon: path.join(__dirname, '..', 'WebTorrent.ico')
}
var linux = {
platform: 'linux'
// Note: Application icon for Linux is specified via the BrowserWindow `icon` option.
}
electronPackager(Object.assign({}, all, darwin), done)

View File

@@ -2,13 +2,14 @@ var path = require('path')
module.exports = {
APP_NAME: 'WebTorrent',
INDEX: 'file://' + path.resolve(__dirname, 'renderer', 'index.html'),
SOUND_ADD: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'add.wav'),
SOUND_DELETE: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'delete.wav'),
SOUND_DISABLE: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'disable.wav'),
SOUND_DONE: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'done.wav'),
SOUND_ENABLE: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'enable.wav'),
SOUND_ERROR: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'error.wav'),
SOUND_PLAY: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'play.wav'),
SOUND_STARTUP: 'file://' + path.resolve(__dirname, 'resources', 'sound', 'startup.wav')
APP_ICON: path.join(__dirname, 'WebTorrent.png'),
INDEX: 'file://' + path.join(__dirname, 'renderer', 'index.html'),
SOUND_ADD: 'file://' + path.join(__dirname, 'resources', 'sound', 'add.wav'),
SOUND_DELETE: 'file://' + path.join(__dirname, 'resources', 'sound', 'delete.wav'),
SOUND_DISABLE: 'file://' + path.join(__dirname, 'resources', 'sound', 'disable.wav'),
SOUND_DONE: 'file://' + path.join(__dirname, 'resources', 'sound', 'done.wav'),
SOUND_ENABLE: 'file://' + path.join(__dirname, 'resources', 'sound', 'enable.wav'),
SOUND_ERROR: 'file://' + path.join(__dirname, 'resources', 'sound', 'error.wav'),
SOUND_PLAY: 'file://' + path.join(__dirname, 'resources', 'sound', 'play.wav'),
SOUND_STARTUP: 'file://' + path.join(__dirname, 'resources', 'sound', 'startup.wav')
}

View File

@@ -20,6 +20,7 @@ function createMainWindow (menu) {
autoHideMenuBar: true, // Hide top menu bar unless Alt key is pressed (Windows, Linux)
backgroundColor: '#282828',
darkTheme: true, // Forces dark theme (GTK+3 only)
icon: config.APP_ICON,
minWidth: 375,
minHeight: 38 + (120 * 2), // header height + 2 torrents
show: false, // Hide window until DOM finishes loading