474 lines
21 KiB
INI
474 lines
21 KiB
INI
base_url='https://github.com/atom/electron/releases/download/v{}/'
|
|
win_32_dir_prefix = 'electron-v{}-win32-ia32'
|
|
mac_32_dir_prefix = 'electron-v{}-darwin-ia32'
|
|
linux_32_dir_prefix = 'electron-v{}-linux-ia32'
|
|
|
|
win_64_dir_prefix = 'electron-v{}-win32-x64'
|
|
mac_64_dir_prefix = 'electron-v{}-darwin-x64'
|
|
linux_64_dir_prefix = 'electron-v{}-linux-x64'
|
|
|
|
|
|
|
|
[setting_groups]
|
|
[[app_settings]]
|
|
[[[main_html]]]
|
|
display_name='Main html file'
|
|
required=True
|
|
type='file'
|
|
file_types='*.html *.php *.htm'
|
|
description='Main html file relative to the project directory.'
|
|
[[[app_name]]]
|
|
display_name='App Name'
|
|
required=False
|
|
type='string'
|
|
description='The name that your executable or app will have when exported.'
|
|
[[[description]]]
|
|
default_value=''
|
|
type='string'
|
|
[[[version]]]
|
|
default_value='0.1.0'
|
|
filter='[a-z0-9\.]+'
|
|
type='string'
|
|
description='Version of your application.'
|
|
[[[user_agent]]]
|
|
display_name='User Agent'
|
|
default_value=''
|
|
type='string'
|
|
description='Overrides the User-Agent header in http requests.\n\nExample:\nMozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36'
|
|
[[[chromium_args]]]
|
|
display_name='Chromium Args'
|
|
default_value=''
|
|
type='string'
|
|
description='Specify chromium command line arguments.\nExample 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.\nExample value: "--harmony_proxies --harmony_collections"'
|
|
[[[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\nscript is run. Will be inserted into generated main.js.'
|
|
[[[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\nloaded. Will be inserted into generated main.js.'
|
|
[[[client_certificate]]]
|
|
display_name='Client Certificate'
|
|
default_value=''
|
|
type='file'
|
|
description='Sets the path of client certificate file.'
|
|
[[[ignore_certificate_errors]]]
|
|
display_name='Ignore Cert. Errors'
|
|
default_value=False
|
|
type='check'
|
|
description='Ignores certificate related errors.'
|
|
[[[remote_debugging_port]]]
|
|
display_name='Remote Debug Port'
|
|
default_value=''
|
|
type='string'
|
|
filter='[0-9]+'
|
|
description='Enables remote debugging over HTTP on the port.'
|
|
[[[ignore_connections_limit]]]
|
|
display_name='Ignore Conn. Limit'
|
|
default_value=''
|
|
type='string'
|
|
description='Ignore the connection limit for domains list separated by a comma.\nExample: www.google.ca,www.bing.com'
|
|
[[[disable_http_cache]]]
|
|
display_name='Disable Http Cache'
|
|
default_value=False
|
|
type='check'
|
|
description='Disables the disk cache for HTTP requests.'
|
|
[[[proxy_server]]]
|
|
default_value=''
|
|
type='string'
|
|
description='Use a specified proxy server, which overrides the system\nsetting. This switch only affects requests with HTTP protocol,\nincluding HTTPS and WebSocket requests. It is also noteworthy\nthat not all proxy servers support HTTPS and WebSocket requests.\n\nExamples:\n231.114.156.200:4554\nmyserver.com:3423'
|
|
[[[proxy_bypass_list]]]
|
|
display_name='Proxy Bypass'
|
|
default_value=''
|
|
type='string'
|
|
description='Instructs Electron to bypass the proxy server for the given\nsemi-colon-separated list of hosts. This flag has an effect only\nif used in tandem with Proxy Server.\n\nExample:\n<local>;*.google.com;*foo.com;1.2.3.4:5678\n\nThe example will use the proxy server for all hosts except for\nlocal addresses (localhost, 127.0.0.1 etc.), google.com subdomains, hosts that\ncontain the suffix foo.com and anything at 1.2.3.4:5678.'
|
|
[[[proxy_pac_url]]]
|
|
display_name='Proxy Pac URL'
|
|
default_value=''
|
|
type='string'
|
|
description='Uses the PAC script at the specified URL.'
|
|
[[[no_proxy_server]]]
|
|
display_name='No Proxy'
|
|
default_value=False
|
|
type='check'
|
|
description="Don't use a proxy server and always make direct connections.\nOverrides any other proxy server settings."
|
|
[[[host_rules]]]
|
|
default_value=''
|
|
type='string'
|
|
description='A comma-separated list of rules that control how hostnames are mapped.\n\nFor example:\n\n- "MAP * 127.0.0.1" Forces all hostnames to be mapped to 127.0.0.1\n- "MAP *.google.com proxy" Forces all google.com subdomains to be resolved to "proxy".\n- "MAP test.com [::1]:77" Forces "test.com" to resolve to IPv6 loopback. Will also force the\nport of the resulting socket address to be 77.\n- "MAP * baz, EXCLUDE www.google.com" Remaps everything to "baz", except for "www.google.com".\n\nThese mappings apply to the endpoint host in a net request (the TCP connect\nand host resolver in a direct connection, and the CONNECT in an HTTP proxy\nconnection, and the endpoint host in a SOCKS proxy connection).'
|
|
[[[host_resolver_rules]]]
|
|
default_value=''
|
|
type='string'
|
|
description='Like Host Rules but these rules only apply to the host resolver.'
|
|
[[[ppapi_flash_path]]]
|
|
display_name='Pepper API'
|
|
default_value=''
|
|
type='file'
|
|
description='Sets the path of the pepper flash plugin.'
|
|
[[[ppapi_flash_version]]]
|
|
display_name='Pepper API Version'
|
|
default_value=''
|
|
type='string'
|
|
description='Sets the version of the Pepper API field.'
|
|
[[[log_net_log]]]
|
|
display_name='Net Log Path'
|
|
default_value=''
|
|
type='file'
|
|
exists=False
|
|
description='Enables net log events to be saved and writes them to this path.'
|
|
[[[disable_renderer_backgrounding]]]
|
|
display_name='Disable Renderer Backgrounding'
|
|
default_value=False
|
|
type='check'
|
|
description="Prevents Chromium from lowering the priority of invisible pages'\nrenderer processes. This flag is global to all renderer processes"
|
|
[[[ssl_version_fallback_min]]]
|
|
display_name='Min SSL Version Fallback'
|
|
default_value=''
|
|
type='string'
|
|
description='Sets the minimum SSL/TLS version ("tls1", "tls1.1" or "tls1.2")\nthat TLS fallback will accept.'
|
|
[[[cipher_suite_blacklist]]]
|
|
display_name='Cipher Blacklist'
|
|
default_value=''
|
|
type='string'
|
|
description='Specifies comma-separated list of SSL cipher suites to disable.'
|
|
|
|
|
|
[[webkit_settings]]
|
|
[[[plugin]]]
|
|
display_name='Load Plugins'
|
|
default_value=False
|
|
type='check'
|
|
[[[java]]]
|
|
display_name='Load Java'
|
|
default_value=False
|
|
type='check'
|
|
[[[page-cache]]]
|
|
display_name='Page Cache'
|
|
default_value=False
|
|
type='check'
|
|
|
|
[[electrify_settings]]
|
|
[[[export_dir]]]
|
|
default_value=''
|
|
type='string'
|
|
[[[custom_script]]]
|
|
default_value=''
|
|
copy=False
|
|
type='file'
|
|
|
|
[[web_preferences]]
|
|
[[[node_integration]]]
|
|
type='check'
|
|
default_value=True
|
|
description='Whether node integration is enabled.'
|
|
[[[preload]]]
|
|
type='file'
|
|
default_value=''
|
|
description='Specifies a script that will be loaded before other scripts run in\nthe page. This script will always have access to node APIs no matter whether\nnode integration is turned on or off. When node integration is turned off,\nthe preload script can reintroduce Node global symbols back to the global scope.'
|
|
[[[partition]]]
|
|
type='string'
|
|
description='Sets the session used by the page. If partition starts with "persist:",\nthe page will use a persistent session available to all pages in the app with\nthe same partition. if there is no "persist:" prefix, the page will use\nan in-memory session. By assigning the same partition, multiple pages\ncan share the same session. If the partition is unset then default\nsession of the app will be used.'
|
|
[[[zoom_factor]]]
|
|
default_value=100
|
|
min=1
|
|
max=1000
|
|
factor=100
|
|
label_suffix='%'
|
|
type='range'
|
|
description='The default zoom factor of the page.'
|
|
[[[javascript]]]
|
|
type='check'
|
|
default_value=True
|
|
description='Enables JavaScript support.'
|
|
[[[web_security]]]
|
|
type='check'
|
|
default_value=True
|
|
description='When setting false, it will disable the same-origin policy (Usually\nusing testing websites by people), and set allowDisplayingInsecureContent\nand allowRunningInsecureContent to true if these two options are not set by user.'
|
|
[[[allow_displaying_insecure_content]]]
|
|
type='check'
|
|
default_value=False
|
|
display_name='Display Insecure'
|
|
description='Allow an https page to display content like images from http URLs.'
|
|
[[[allow_running_insecure_content]]]
|
|
type='check'
|
|
default_value=False
|
|
display_name='Run Insecure'
|
|
description='Allow a https page to run JavaScript, CSS or plugins from http URLs.'
|
|
[[[images]]]
|
|
type='check'
|
|
default_value=True
|
|
display_name='Display Images'
|
|
description='Enables image support.'
|
|
[[[text_areas_are_resizable]]]
|
|
type='check'
|
|
default_value=True
|
|
display_name='Resizable TextAreas'
|
|
description='Make TextArea elements resizable.'
|
|
[[[webgl]]]
|
|
type='check'
|
|
default_value=True
|
|
description='Enables WebGL support.'
|
|
[[[webaudio]]]
|
|
type='check'
|
|
default_value=True
|
|
description='Enables WebAudio support.'
|
|
[[[plugins]]]
|
|
type='check'
|
|
default_value=False
|
|
description='Whether plugins should be enabled.'
|
|
[[[experimental_features]]]
|
|
type='check'
|
|
display_name='Exp. Features'
|
|
default_value=False
|
|
description="Enables Chromium's experimental features."
|
|
[[[experimental_canvas_features]]]
|
|
type='check'
|
|
display_name='Exp. Canvas Features'
|
|
default_value=False
|
|
description="Enables Chromium's experimental canvas features."
|
|
[[[direct_write]]]
|
|
type='check'
|
|
default_value=True
|
|
description='Enables DirectWrite font rendering system on Windows.'
|
|
[[[blink_features]]]
|
|
type='string'
|
|
default_value=''
|
|
description='A list of feature strings separated by ",", like "CSSVariables,KeyboardEventKey".\nThe full list of supported feature strings can be found in the\nsetFeatureEnabledFromString function of chromium.'
|
|
|
|
[[window_settings]]
|
|
[[[title]]]
|
|
default_value=''
|
|
type='string'
|
|
[[[icon]]]
|
|
display_name='Window Icon'
|
|
default_value=''
|
|
type='file'
|
|
action='set_window_icon'
|
|
file_types='*.png *.jpg *.jpeg'
|
|
[[[mac_icon]]]
|
|
default_value=''
|
|
type='file'
|
|
action='set_mac_icon'
|
|
file_types='*.png *.jpg *.jpeg *.icns'
|
|
description='This icon to be displayed for the Mac Application. Defaults to Window Icon'
|
|
[[[exe_icon]]]
|
|
default_value=''
|
|
type='file'
|
|
action='set_exe_icon'
|
|
file_types='*.png *.jpg *.jpeg'
|
|
description='This icon to be displayed for the windows exe of the app. Defaults to Window icon.'
|
|
[[[width]]]
|
|
default_value='800'
|
|
type='string'
|
|
convert='int'
|
|
[[[height]]]
|
|
default_value='600'
|
|
type='string'
|
|
convert='int'
|
|
[[[x]]]
|
|
default_value='100'
|
|
type='string'
|
|
convert='int'
|
|
description="Window's left offset from screen. Default is to center the window"
|
|
[[[y]]]
|
|
default_value='100'
|
|
convert='int'
|
|
type='string'
|
|
description="Window's top offset from screen. Default is to center the window."
|
|
[[[use_content_size]]]
|
|
default_value=False
|
|
type='check'
|
|
description="The width and height would be used as web page's size, which\nmeans the actual window's size will include window frame's size\nand be slightly larger. Default is false."
|
|
[[[accept_first_mouse]]]
|
|
type='check'
|
|
default_value=False
|
|
description='Whether the web view accepts a single mouse-down event that\nsimultaneously activates the window.'
|
|
[[[auto_hide_menu_bar]]]
|
|
type='check'
|
|
default_value=False
|
|
description='Auto hide the menu bar unless the Alt key is pressed.'
|
|
[[[disable_auto_hide_cursor]]]
|
|
type='check'
|
|
default_value=False
|
|
description='Whether to hide cursor when typing.'
|
|
[[[enable_larger_than_screen]]]
|
|
display_name='Resize Larger Than Screen'
|
|
type='check'
|
|
default_value=False
|
|
description='Enable the window to be resized larger than screen.'
|
|
[[[background_color]]]
|
|
type='color'
|
|
default_value='#000'
|
|
description="Window's background color as Hexadecimal value, like #66CD00 or #FFF.\nThis is only implemented on Linux and Windows."
|
|
[[[dark_theme]]]
|
|
type='check'
|
|
default_value=False
|
|
description='Forces using dark theme for the window, only works on some GTK+3\ndesktop environments.'
|
|
[[[min_width]]]
|
|
default_value=None
|
|
type='string'
|
|
[[[min_height]]]
|
|
default_value=None
|
|
type='string'
|
|
[[[max_width]]]
|
|
default_value=None
|
|
type='string'
|
|
[[[max_height]]]
|
|
default_value=None
|
|
type='string'
|
|
[[[always_on_top]]]
|
|
display_name='Keep on Top'
|
|
default_value=False
|
|
type='check'
|
|
description='Whether the window should always stay on top of other windows.'
|
|
[[[frame]]]
|
|
display_name='Window Frame'
|
|
default_value=True
|
|
type='check'
|
|
description='Specify false to create a Frameless Window.'
|
|
[[[skip_taskbar]]]
|
|
display_name='Skip Taskbar'
|
|
default_value=False
|
|
type='check'
|
|
description='Whether to show the window in the taskbar.'
|
|
[[[show]]]
|
|
display_name='Show'
|
|
default_value=True
|
|
type='check'
|
|
description='Uncheck to make your app hidden on startup.'
|
|
[[[resizable]]]
|
|
default_value=False
|
|
type='check'
|
|
description='Whether window is resizable.'
|
|
[[[fullscreen]]]
|
|
default_value=False
|
|
type='check'
|
|
description='Whether the window should show in fullscreen. When set to false the\nfullscreen button will be hidden or disabled on OS X.'
|
|
[[[center]]]
|
|
display_name='Center Window'
|
|
default_value=True
|
|
type='check'
|
|
description='Show window in the center of the screen.'
|
|
[[[transparent]]]
|
|
default_value=False
|
|
type='check'
|
|
description='Allows window tranparency.'
|
|
[[[type]]]
|
|
display_name='Window Type'
|
|
default_value=None
|
|
values=[None, 'desktop', 'dock', 'toolbar', 'splash', 'notification', 'textured']
|
|
type='list'
|
|
description='The type of window to draw. Note that "textured" is Mac OSX only.'
|
|
[[[title_bar_style]]]
|
|
default_value='default'
|
|
values=['default', 'hidden', 'hidden-inset']
|
|
type='list'
|
|
description='The title bar style. Mac OSX > 10.10 only.'
|
|
[[[kiosk]]]
|
|
default_value=False
|
|
type='check'
|
|
description='Puts the application is kiosk mode.'
|
|
|
|
[[download_settings]]
|
|
[[[electron_version]]]
|
|
display_name='Electron version'
|
|
default_value='0.36.7'
|
|
values=[]
|
|
type='list'
|
|
button='Update'
|
|
button_callback='update_electron_versions'
|
|
[[[force_download]]]
|
|
default_value=False
|
|
type='check'
|
|
[[[download_dir]]]
|
|
display_name='Download location'
|
|
default_value='{DEFAULT_DOWNLOAD_PATH}'
|
|
type='folder'
|
|
|
|
[export_settings]
|
|
[[windows-x32]]
|
|
default_value=False
|
|
type='check'
|
|
url='%(base_url)s%(win_32_dir_prefix)s.zip'
|
|
binary_location='electron.exe'
|
|
|
|
[[windows-x64]]
|
|
default_value=False
|
|
type='check'
|
|
url='%(base_url)s%(win_64_dir_prefix)s.zip'
|
|
binary_location='electron.exe'
|
|
|
|
[[mac-x64]]
|
|
default_value=False
|
|
type='check'
|
|
url='%(base_url)s%(mac_64_dir_prefix)s.zip'
|
|
binary_location='Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Electron Framework'
|
|
|
|
[[linux-x64]]
|
|
default_value=False
|
|
type='check'
|
|
url='%(base_url)s%(linux_64_dir_prefix)s.zip'
|
|
binary_location='electron'
|
|
|
|
[[linux-x32]]
|
|
default_value=False
|
|
type='check'
|
|
url='%(base_url)s%(linux_32_dir_prefix)s.zip'
|
|
binary_location='electron'
|
|
|
|
[compression]
|
|
[[electron_compression_level]]
|
|
display_name='Compression Level'
|
|
default_value=0
|
|
min=0
|
|
max=9
|
|
type='range'
|
|
description='Compression to be applied to the executable\'s electron binary.\n0 is no compression, 9 is maximum. They all use lzma.'
|
|
[[uncompressed_folder]]
|
|
display_name='Uncompressed Folder'
|
|
type='check'
|
|
default_value=False
|
|
description='Mac OSX Only! This option makes the resulting app.nw inside\nthe app just a plain folder. This is useful to mitigate\nstartup times and to modify files.'
|
|
|
|
|
|
[order]
|
|
application_setting_order="""['main_html', 'app_name', 'description', 'version',
|
|
'user_agent', 'chromium_args', 'js_flags', 'inject_js_start',
|
|
'inject_js_end', 'remote_debugging_port', 'client_certificate',
|
|
'ignore_connections_limit', 'proxy_server', 'proxy_bypass_list',
|
|
'host_resolver_rules', 'log_net_log', 'ppapi_flash_path',
|
|
'ppapi_flash_version', 'ssl_version_fallback_min',
|
|
'cipher_suite_blacklist',
|
|
'ignore_certificate_errors', 'disable_http_cache',
|
|
'disable_renderer_backgrounding']"""
|
|
window_setting_order = """['title', 'icon', 'mac_icon', 'exe_icon',
|
|
'width', 'height', 'x', 'y', 'min_width', 'min_height',
|
|
'max_width', 'max_height', 'center', 'use_content_size', 'always_on_top',
|
|
'frame', 'skip_taskbar', 'show', 'resizable', 'fullscreen',
|
|
'kiosk', 'transparent', 'accept_first_mouse', 'disable_auto_hide_cursor',
|
|
'auto_hide_menu_bar', 'enable_larger_than_screen', 'background_color',
|
|
'dark_theme', 'type', 'title_bar_style']"""
|
|
web_prefs_order = """['preload', 'partition', 'blink_features', 'zoom_factor', 'node_integration',
|
|
'javascript', 'web_security', 'allow_displaying_insecure_content',
|
|
'allow_running_insecure_content', 'images', 'text_areas_are_resizable',
|
|
'webaudio', 'plugins', 'experimental_features', 'experimental_canvas_features',
|
|
'direct_write']"""
|
|
|
|
export_setting_order = """['windows-x32', 'windows-x64', 'mac-x64', 'linux-x64', 'linux-x32']"""
|
|
compression_setting_order = """['electron_compression_level']"""
|
|
|
|
download_setting_order = """['electron_version', 'download_dir',
|
|
'force_download']"""
|
|
|
|
[version_info]
|
|
electron_url='https://api.github.com/repos/atom/electron/releases'
|