Modified application options.

Added application settings:
    user-agent
    node-remote
    chromium-args
    js-flags
    inject-js-start/inject-js-end
    snapshot
    additional_trust_anchors
This commit is contained in:
Joey Payne 2015-01-10 12:44:27 +13:00
commit ee44fce917
2 changed files with 52 additions and 7 deletions

View file

@ -33,15 +33,58 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64'
default_value=True
type='check'
[[[node-main]]]
display_name='Alt. Nodejs'
display_name='Node Main'
default_value=''
type='file'
file_types='*.js'
description='A path to a nodejs script file that will be executed on startup.'
[[[single-instance]]]
display_name='Single Instance'
default_value=True
type='check'
description='Restrict the app to run with only a single instance allowed at a time.'
[[[user-agent]]]
display_name='User Agent'
default_value=''
type='string'
description='Overrides the User-Agent header in http requests.'
[[[node-remote]]]
display_name='Node Remote'
default_value=''
type='string'
description='Enable calling node in remote pages. See the node-webkit manifest format for more info.'
[[[chromium-args]]]
display_name='Chromium Args'
default_value=''
type='string'
description='Specify chromium command line arguments. Example value: "--disable-accelerated-video --force-cpu-draw"'
[[[js-flags]]]
display_name='JS Flags'
default_value=''
type='string'
description='Specify flags passed to the js engine. Example value: "--harmony_proxies --harmony_collecions"'
[[[inject-js-start]]]
display_name='Inject JS Start'
default_value=''
type='file'
file_types='*.js'
description='A path to a js file that will be executed before any other script is run.'
[[[inject-js-end]]]
display_name='Inject JS End'
default_value=''
type='file'
file_types='*.js'
description='A path to a js file that will be executed after the DOM is loaded.'
[[[snapshot]]]
default_value=''
type='file'
file_types='*.bin'
description='A path to a binary file compiled with snapshot. Used if you don\'t want your code to be exposed.'
[[[additional_trust_anchors]]]
display_name='Trust Anchors'
default_value=''
type='string'
description='A list of PEM-encoded certificates. Used as additional root certificates for validation to allow connecting to services using a self-signed certificate.'
[[webkit_settings]]
[[[plugin]]]
@ -75,7 +118,7 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64'
default_value=''
type='file'
file_types='*.png *.jpg *.jpeg'
description='This icon to be displayed for the windows exe of the app. Defaults to Winodow icon.'
description='This icon to be displayed for the windows exe of the app. Defaults to Window icon.'
[[[width]]]
default_value='640'
type='string'
@ -211,8 +254,10 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64'
[order]
application_setting_order="""['main', 'name', 'node-main', 'description', 'version', 'keywords',
'nodejs', 'single-instance', 'plugin',
'java', 'page-cache']"""
'user-agent', 'chromium-args',
'node-remote', 'js-flags', 'inject-js-start', 'inject-js-end',
'additional_trust_anchors', 'snapshot',
'nodejs', 'single-instance', 'plugin', 'java', 'page-cache']"""
window_setting_order = """['title', 'icon', 'mac_icon', 'exe_icon', 'position', 'width', 'height',
'min_width', 'min_height',
'max_width', 'max_height', 'toolbar', 'always-on-top', 'frame',