mac file types

pull/233/head
antelle 2016-04-17 17:31:03 +03:00
parent 566c322e22
commit e14e97efda
3 changed files with 27 additions and 0 deletions

View File

@ -4,6 +4,7 @@ var builder = require('electron-builder');
var macPackager = require('electron-builder/out/macPackager');
var platformPackager = require('electron-builder/out/platformPackager');
var linuxPackager = require('electron-builder/out/linuxPackager');
var plist = require('plist');
var version;

View File

@ -62,6 +62,7 @@
"iconUrl": "https://raw.githubusercontent.com/antelle/keeweb/master/graphics/icon.ico",
"compression": "maximum",
"asar": false,
"extend-info": "package/osx/extend.plist",
"osx": {
"contents": [
{ "x": 438, "y": 344, "type": "link", "path": "/Applications" },

25
package/osx/extend.plist Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>kdbx</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>electron.icns</string>
<key>CFBundleTypeName</key>
<string>Password Database</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>kdbx</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>
</dict>
</plist>