config.COPYRIGHT -> APP_COPYRIGHT
This commit is contained in:
@@ -98,7 +98,7 @@ var win32 = {
|
|||||||
CompanyName: config.APP_NAME,
|
CompanyName: config.APP_NAME,
|
||||||
|
|
||||||
// Copyright notices that apply to the file.
|
// Copyright notices that apply to the file.
|
||||||
LegalCopyright: config.COPYRIGHT,
|
LegalCopyright: config.APP_COPYRIGHT,
|
||||||
|
|
||||||
// Name of the program, displayed to users
|
// Name of the program, displayed to users
|
||||||
FileDescription: config.APP_NAME,
|
FileDescription: config.APP_NAME,
|
||||||
@@ -144,12 +144,6 @@ function buildDarwin (cb) {
|
|||||||
)
|
)
|
||||||
var resourcesPath = path.join(contentsPath, 'Resources')
|
var resourcesPath = path.join(contentsPath, 'Resources')
|
||||||
var infoPlistPath = path.join(contentsPath, 'Info.plist')
|
var infoPlistPath = path.join(contentsPath, 'Info.plist')
|
||||||
var webTorrentFileIconPath = path.join(
|
|
||||||
__dirname,
|
|
||||||
'..',
|
|
||||||
'static',
|
|
||||||
'WebTorrentFile.icns'
|
|
||||||
)
|
|
||||||
var infoPlist = plist.parse(fs.readFileSync(infoPlistPath, 'utf8'))
|
var infoPlist = plist.parse(fs.readFileSync(infoPlistPath, 'utf8'))
|
||||||
|
|
||||||
infoPlist.CFBundleDocumentTypes = [
|
infoPlist.CFBundleDocumentTypes = [
|
||||||
@@ -179,7 +173,7 @@ function buildDarwin (cb) {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
infoPlist.NSHumanReadableCopyright = config.COPYRIGHT
|
infoPlist.NSHumanReadableCopyright = config.APP_COPYRIGHT
|
||||||
|
|
||||||
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))
|
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))
|
||||||
cp.execSync(`cp ${config.APP_FILE_ICON + '.icns'} ${resourcesPath}`)
|
cp.execSync(`cp ${config.APP_FILE_ICON + '.icns'} ${resourcesPath}`)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ var applicationConfigPath = require('application-config-path')
|
|||||||
var path = require('path')
|
var path = require('path')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
APP_COPYRIGHT: 'Copyright © 2014-2016 The WebTorrent Project',
|
||||||
APP_FILE_ICON: path.join(pathToStatic(), 'WebTorrentFile'),
|
APP_FILE_ICON: path.join(pathToStatic(), 'WebTorrentFile'),
|
||||||
APP_ICON: path.join(pathToStatic(), 'WebTorrent'),
|
APP_ICON: path.join(pathToStatic(), 'WebTorrent'),
|
||||||
APP_NAME: 'WebTorrent',
|
APP_NAME: 'WebTorrent',
|
||||||
@@ -10,8 +11,6 @@ module.exports = {
|
|||||||
CONFIG_POSTER_PATH: path.join(applicationConfigPath('WebTorrent'), 'Posters'),
|
CONFIG_POSTER_PATH: path.join(applicationConfigPath('WebTorrent'), 'Posters'),
|
||||||
CONFIG_TORRENT_PATH: path.join(applicationConfigPath('WebTorrent'), 'Torrents'),
|
CONFIG_TORRENT_PATH: path.join(applicationConfigPath('WebTorrent'), 'Torrents'),
|
||||||
|
|
||||||
COPYRIGHT: 'Copyright © 2014-2016 The WebTorrent Project',
|
|
||||||
|
|
||||||
INDEX: 'file://' + path.join(__dirname, 'renderer', 'index.html'),
|
INDEX: 'file://' + path.join(__dirname, 'renderer', 'index.html'),
|
||||||
|
|
||||||
IS_PRODUCTION: isProduction(),
|
IS_PRODUCTION: isProduction(),
|
||||||
|
|||||||
Reference in New Issue
Block a user