Write poster images into "$CONFIG_PATH/posters" (fix #155)

This commit is contained in:
Feross Aboukhadijeh
2016-03-19 16:19:15 -07:00
parent 0c9e2cc27e
commit 684fa7dee7
4 changed files with 11 additions and 8 deletions

View File

@@ -1,9 +1,15 @@
var applicationConfigPath = require('application-config-path')
var path = require('path')
module.exports = {
APP_NAME: 'WebTorrent',
APP_ICON: path.join(__dirname, 'static', 'WebTorrent.png'),
APP_NAME: 'WebTorrent',
CONFIG_PATH: applicationConfigPath('WebTorrent'),
CONFIG_POSTER_PATH: path.join(applicationConfigPath('WebTorrent'), 'posters'),
INDEX: 'file://' + path.join(__dirname, 'renderer', 'index.html'),
SOUND_ADD: 'file://' + path.join(__dirname, 'static', 'sound', 'add.wav'),
SOUND_DELETE: 'file://' + path.join(__dirname, 'static', 'sound', 'delete.wav'),
SOUND_DISABLE: 'file://' + path.join(__dirname, 'static', 'sound', 'disable.wav'),