From f1c27f2a693a3faa44236d0216d84413d7e38651 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 20 Mar 2016 00:11:44 -0700 Subject: [PATCH] config.COPYRIGHT --- bin/package.js | 7 +++---- config.js | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/package.js b/bin/package.js index 72b2df38..3983aace 100755 --- a/bin/package.js +++ b/bin/package.js @@ -93,9 +93,8 @@ var win32 = { // Company that produced the file. CompanyName: config.APP_NAME, - // Copyright notices that apply to the file. This should include the full text of all - // notices, legal symbols, copyright dates, and so on. - LegalCopyright: fs.readFileSync(path.join(__dirname, '..', 'LICENSE'), 'utf8'), + // Copyright notices that apply to the file. + LegalCopyright: config.COPYRIGHT, // Name of the program, displayed to users FileDescription: config.APP_NAME, @@ -176,7 +175,7 @@ function buildDarwin (cb) { } ] - infoPlist.NSHumanReadableCopyright = 'Copyright © 2014-2016 The WebTorrent Project' + infoPlist.NSHumanReadableCopyright = config.COPYRIGHT fs.writeFileSync(infoPlistPath, plist.build(infoPlist)) cp.execSync(`cp ${webTorrentFileIconPath} ${resourcesPath}`) diff --git a/config.js b/config.js index f8c65135..cf1031d8 100644 --- a/config.js +++ b/config.js @@ -9,6 +9,8 @@ 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(),