mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-22 18:18:55 +00:00
merge
This commit is contained in:
commit
2f2618f7a0
5
index.js
5
index.js
@ -57,6 +57,7 @@ module.exports = function packager (opts, cb) {
|
||||
|
||||
var bundleId = opts['app-bundle-id'] || 'com.electron.' + opts.name.toLowerCase()
|
||||
var bundleHelperId = opts['helper-bundle-id'] || 'com.electron.' + opts.name.toLowerCase() + '.helper'
|
||||
var appVersion = opts['app-version']
|
||||
|
||||
pl1.CFBundleDisplayName = opts.name
|
||||
pl1.CFBundleIdentifier = bundleId
|
||||
@ -64,6 +65,10 @@ module.exports = function packager (opts, cb) {
|
||||
pl2.CFBundleIdentifier = bundleHelperId
|
||||
pl2.CFBundleName = opts.name
|
||||
|
||||
if (appVersion) {
|
||||
pl1.CFBundleVersion = appVersion
|
||||
}
|
||||
|
||||
if (opts.protocols) {
|
||||
pl2.CFBundleURLTypes = pl1.CFBundleURLTypes = opts.protocols.map(function (protocol) {
|
||||
return {
|
||||
|
@ -45,6 +45,7 @@ these are optional CLI options you can pass in
|
||||
- `out` (default current working dir) - the dir to put the app into at the end
|
||||
- `icon` - the icon file to use as the icon for the app
|
||||
- `app-bundle-id` - bundle identifier to use in the app plist
|
||||
- `app-version` - version to set for the app
|
||||
- `helper-bundle-id` - bundle identifier to use in the app helper plist
|
||||
- `ignore` (default none) - do not copy files into App whose filenames regex .match this string
|
||||
- `prune` - runs `npm prune --production` on the app
|
||||
|
Loading…
Reference in New Issue
Block a user