From 45b36fb7a1c40602181d47c45ba9a78560c88ffe Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 20 Mar 2016 00:52:24 -0700 Subject: [PATCH] config.COPYRIGHT -> APP_COPYRIGHT --- bin/package.js | 10 ++-------- config.js | 3 +-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/bin/package.js b/bin/package.js index 3b275f62..c72f8475 100755 --- a/bin/package.js +++ b/bin/package.js @@ -98,7 +98,7 @@ var win32 = { CompanyName: config.APP_NAME, // Copyright notices that apply to the file. - LegalCopyright: config.COPYRIGHT, + LegalCopyright: config.APP_COPYRIGHT, // Name of the program, displayed to users FileDescription: config.APP_NAME, @@ -144,12 +144,6 @@ function buildDarwin (cb) { ) var resourcesPath = path.join(contentsPath, 'Resources') var infoPlistPath = path.join(contentsPath, 'Info.plist') - var webTorrentFileIconPath = path.join( - __dirname, - '..', - 'static', - 'WebTorrentFile.icns' - ) var infoPlist = plist.parse(fs.readFileSync(infoPlistPath, 'utf8')) infoPlist.CFBundleDocumentTypes = [ @@ -179,7 +173,7 @@ function buildDarwin (cb) { } ] - infoPlist.NSHumanReadableCopyright = config.COPYRIGHT + infoPlist.NSHumanReadableCopyright = config.APP_COPYRIGHT fs.writeFileSync(infoPlistPath, plist.build(infoPlist)) cp.execSync(`cp ${config.APP_FILE_ICON + '.icns'} ${resourcesPath}`) diff --git a/config.js b/config.js index e9200bbd..7ded0738 100644 --- a/config.js +++ b/config.js @@ -2,6 +2,7 @@ var applicationConfigPath = require('application-config-path') var path = require('path') module.exports = { + APP_COPYRIGHT: 'Copyright © 2014-2016 The WebTorrent Project', APP_FILE_ICON: path.join(pathToStatic(), 'WebTorrentFile'), APP_ICON: path.join(pathToStatic(), 'WebTorrent'), APP_NAME: 'WebTorrent', @@ -10,8 +11,6 @@ module.exports = { CONFIG_POSTER_PATH: path.join(applicationConfigPath('WebTorrent'), 'Posters'), CONFIG_TORRENT_PATH: path.join(applicationConfigPath('WebTorrent'), 'Torrents'), - COPYRIGHT: 'Copyright © 2014-2016 The WebTorrent Project', - INDEX: 'file://' + path.join(__dirname, 'renderer', 'index.html'), IS_PRODUCTION: isProduction(),