Fix merge mistake
This commit is contained in:
@@ -147,14 +147,27 @@ function buildDarwin (cb) {
|
|||||||
'static',
|
'static',
|
||||||
'WebTorrentFile.icns'
|
'WebTorrentFile.icns'
|
||||||
)
|
)
|
||||||
var infoPlist = plist.parse(fs.readFileSync(infoPlistPath).toString())
|
var infoPlist = plist.parse(fs.readFileSync(infoPlistPath, 'utf8'))
|
||||||
|
|
||||||
infoPlist['CFBundleDocumentTypes'] = [{
|
infoPlist.CFBundleDocumentTypes = [
|
||||||
|
{
|
||||||
CFBundleTypeExtensions: [ 'torrent' ],
|
CFBundleTypeExtensions: [ 'torrent' ],
|
||||||
|
CFBundleTypeIconFile: 'WebTorrentFile.icns',
|
||||||
CFBundleTypeName: 'BitTorrent Document',
|
CFBundleTypeName: 'BitTorrent Document',
|
||||||
CFBundleTypeRole: 'Editor',
|
CFBundleTypeRole: 'Editor',
|
||||||
CFBundleTypeIconFile: 'WebTorrentFile.icns'
|
LSHandlerRank: 'Owner',
|
||||||
}]
|
LSItemContentTypes: [ 'org.bittorrent.torrent' ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
CFBundleTypeName: 'Any',
|
||||||
|
CFBundleTypeOSTypes: [ '****' ],
|
||||||
|
CFBundleTypeRole: 'Editor',
|
||||||
|
LSHandlerRank: 'Owner',
|
||||||
|
LSTypeIsPackage: false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
infoPlist.NSHumanReadableCopyright = 'Copyright © 2014-2016 The WebTorrent Project'
|
||||||
|
|
||||||
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))
|
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))
|
||||||
cp.execSync(`cp ${webTorrentFileIconPath} ${resourcesPath}`)
|
cp.execSync(`cp ${webTorrentFileIconPath} ${resourcesPath}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user