OS X: open magnet links in WebTorrent

This commit is contained in:
Feross Aboukhadijeh
2016-03-19 17:09:05 -07:00
parent 6b6d1ee1c7
commit 0f263b89e5
3 changed files with 26 additions and 16 deletions

View File

@@ -167,6 +167,15 @@ function buildDarwin (cb) {
}
]
infoPlist.CFBundleURLTypes = [
{
CFBundleTypeRole: 'Editor',
CFBundleURLIconFile: 'WebTorrentFile.icns',
CFBundleURLName: 'BitTorrent Magnet URL',
CFBundleURLSchemes: [ 'magnet' ]
}
]
infoPlist.NSHumanReadableCopyright = 'Copyright © 2014-2016 The WebTorrent Project'
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))