From a1be5099ee5b1070e54173732b1666c51fa7cbf5 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 10 Apr 2015 16:25:27 -0600 Subject: [PATCH] Temporary change to settings for kiosk emulation test. --- Web2ExeLinux/files/settings.cfg | 345 ++++++++++++++++++++++++++++++++ files/settings.cfg | 7 +- 2 files changed, 351 insertions(+), 1 deletion(-) create mode 100644 Web2ExeLinux/files/settings.cfg diff --git a/Web2ExeLinux/files/settings.cfg b/Web2ExeLinux/files/settings.cfg new file mode 100644 index 0000000..d2e121f --- /dev/null +++ b/Web2ExeLinux/files/settings.cfg @@ -0,0 +1,345 @@ +base_url='http://dl.nwjs.io/v{}/' +win_32_dir_prefix = 'node-webkit-v{}-win-ia32' +mac_32_dir_prefix = 'node-webkit-v{}-osx-ia32' +linux_32_dir_prefix = 'node-webkit-v{}-linux-ia32' + +win_64_dir_prefix = 'node-webkit-v{}-win-x64' +mac_64_dir_prefix = 'node-webkit-v{}-osx-x64' +linux_64_dir_prefix = 'node-webkit-v{}-linux-x64' + +[setting_groups] + [[app_settings]] + [[[main]]] + display_name='Main html file' + required=True + type='file' + file_types='*.html *.php *.htm' + description='Main html file relative to the project directory.' + [[[name]]] + display_name='Name' + required=True + type='string' + description='The name in the internal package.json. Must be alpha-numeric with no spaces.' + filter='[a-z0-9_\-\.]+' + filter_action='lower' + [[[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' + type='string' + [[[keywords]]] + default_value='' + type='string' + [[[nodejs]]] + display_name='Include Nodejs' + default_value=True + type='check' + [[[node-main]]] + 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]]] + 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' + + [[window_settings]] + [[[title]]] + default_value='' + type='string' + [[[icon]]] + display_name='Window Icon' + default_value='' + type='file' + file_types='*.png *.jpg *.jpeg' + [[[mac_icon]]] + default_value='' + type='file' + 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' + 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='640' + type='string' + [[[height]]] + default_value='480' + type='string' + [[[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' + [[[toolbar]]] + display_name='Show Toolbar' + default_value=False + type='check' + description='' + [[[always-on-top]]] + display_name='Keep on Top' + default_value=False + type='check' + description='' + [[[frame]]] + display_name='Window Frame' + default_value=True + type='check' + description='Hide the frame of the window' + [[[show_in_taskbar]]] + display_name='Taskbar' + default_value=True + type='check' + description='Hide the app running in the taskbar' + [[[show]]] + display_name='Show' + default_value=True + type='check' + description='Uncheck to make your app hidden on startup.' + [[[visible]]] + default_value=True + type='check' + description='' + [[[resizable]]] + default_value=False + type='check' + description='' + [[[fullscreen]]] + default_value=False + type='check' + description='' + [[[position]]] + display_name='Position by' + default_value=None + values=[None, 'mouse', 'center'] + type='list' + description='The position to place the window when it opens.' + [[[as_desktop]]] + default_value=False + type='check' + description='Tries to render the app to the desktop background' + [[[transparent]]] + default_value=False + type='check' + description='Allows window tranparency.' + [[[kiosk]]] + default_value=False + type='check' + description='Puts the application is kiosk mode.' + + [[download_settings]] + [[[nw_version]]] + display_name='Node-webkit version' + default_value='0.12.0' + values=[] + type='list' + button='Update' + button_callback='update_nw_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' + extract_files="""['%(win_32_dir_prefix)s/nw.exe', + '%(win_32_dir_prefix)s/nw.pak', + '%(win_32_dir_prefix)s/icudtl.dat', + '%(win_32_dir_prefix)s/libEGL.dll', + '%(win_32_dir_prefix)s/ffmpegsumo.dll', + '%(win_32_dir_prefix)s/libGLESv2.dll', + '%(win_32_dir_prefix)s/d3dcompiler_46.dll', + '%(win_32_dir_prefix)s/d3dcompiler_47.dll', + '%(win_32_dir_prefix)s/pdf.dll' + ]""" + dest_files="""['nw.exe', + 'nw.pak', + 'icudtl.dat', + 'libEGL.dll', + 'ffmpegsumo.dll', + 'libGLESv2.dll', + 'd3dcompiler_46.dll', + 'd3dcompiler_47.dll', + 'pdf.dll' + ]""" + [[windows-x64]] + default_value=False + type='check' + url='%(base_url)s%(win_64_dir_prefix)s.zip' + extract_files="""['%(win_64_dir_prefix)s/nw.exe', + '%(win_64_dir_prefix)s/nw.pak', + '%(win_64_dir_prefix)s/icudtl.dat', + '%(win_64_dir_prefix)s/libEGL.dll', + '%(win_64_dir_prefix)s/ffmpegsumo.dll', + '%(win_64_dir_prefix)s/libGLESv2.dll', + '%(win_64_dir_prefix)s/d3dcompiler_46.dll', + '%(win_64_dir_prefix)s/d3dcompiler_47.dll', + '%(win_64_dir_prefix)s/pdf.dll' + ]""" + dest_files="""['nw.exe', + 'nw.pak', + 'icudtl.dat', + 'libEGL.dll', + 'ffmpegsumo.dll', + 'libGLESv2.dll', + 'd3dcompiler_46.dll', + 'd3dcompiler_47.dll', + 'pdf.dll' + ]""" + + [[mac-x32]] + default_value=False + type='check' + url='%(base_url)s%(mac_32_dir_prefix)s.zip' + extract_file='%(mac_32_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/node-webkit Framework' + extract_files="""['%(mac_32_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/node-webkit Framework', + '%(mac_32_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/nw.pak', + '%(mac_32_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Libraries/ffmpegsumo.so', + '%(mac_32_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/icudtl.dat']""" + dest_files="""['node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/node-webkit Framework', + 'node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/nw.pak', + 'node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Libraries/ffmpegsumo.so', + 'node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/icudtl.dat']""" + [[mac-x64]] + default_value=False + type='check' + url='%(base_url)s%(mac_64_dir_prefix)s.zip' + extract_file='%(mac_64_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/node-webkit Framework' + extract_files="""['%(mac_64_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/node-webkit Framework', + '%(mac_64_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/nw.pak', + '%(mac_64_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Libraries/ffmpegsumo.so', + '%(mac_64_dir_prefix)s/node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/icudtl.dat']""" + dest_files="""['node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/node-webkit Framework', + 'node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/nw.pak', + 'node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Libraries/ffmpegsumo.so', + 'node-webkit.app/Contents/Frameworks/node-webkit Framework.framework/Resources/icudtl.dat']""" + + + [[linux-x64]] + default_value=False + type='check' + url='%(base_url)s%(linux_64_dir_prefix)s.tar.gz' + extract_file='%(linux_64_dir_prefix)s/nw' + extract_files="""['%(linux_64_dir_prefix)s/nw', + '%(linux_64_dir_prefix)s/nw.pak', + '%(linux_64_dir_prefix)s/libffmpegsumo.so', + '%(linux_64_dir_prefix)s/icudtl.dat']""" + dest_files=['nw', 'nw.pak', 'libffmpegsumo.so', 'icudtl.dat'] + [[linux-x32]] + default_value=False + type='check' + url='%(base_url)s%(linux_32_dir_prefix)s.tar.gz' + extract_file='%(linux_32_dir_prefix)s/nw' + extract_files="""['%(linux_32_dir_prefix)s/nw', + '%(linux_32_dir_prefix)s/nw.pak', + '%(linux_32_dir_prefix)s/libffmpegsumo.so', + '%(linux_32_dir_prefix)s/icudtl.dat']""" + dest_files=['nw', 'nw.pak', 'libffmpegsumo.so', 'icudtl.dat'] + +[compression] + [[nw_compression_level]] + display_name='NW Compression' + default_value=5 + type='range' + description='Compression to be applied to the executable\'s node webkit binary. 0 is no compression, 9 is maximum. They all use lzma.' + + +[order] + application_setting_order="""['main', 'name', 'app_name', 'node-main', 'description', 'version', 'keywords', + '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', + 'show_in_taskbar', 'show', 'visible', 'resizable', 'fullscreen', 'as_desktop', + 'kiosk', 'transparent']""" + + export_setting_order = """['windows-x32', 'windows-x64', 'mac-x32', 'mac-x64', 'linux-x64', 'linux-x32']""" + + download_setting_order = """['nw_version', 'download_dir', + 'force_download']""" + +[version_info] + url='https://raw.githubusercontent.com/nwjs/nw.js/master/CHANGELOG.md' diff --git a/files/settings.cfg b/files/settings.cfg index d2e121f..6766640 100644 --- a/files/settings.cfg +++ b/files/settings.cfg @@ -200,6 +200,11 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64' default_value=False type='check' description='Puts the application is kiosk mode.' + [[[kiosk_emulation]]] + default_value=False + type='check' + description='Puts the application is kiosk emulation mode. Will automatically check off required settings that will emulate kiosk.' + check_action='set_kiosk_emulation_options' [[download_settings]] [[[nw_version]]] @@ -334,7 +339,7 @@ linux_64_dir_prefix = 'node-webkit-v{}-linux-x64' 'min_width', 'min_height', 'max_width', 'max_height', 'toolbar', 'always-on-top', 'frame', 'show_in_taskbar', 'show', 'visible', 'resizable', 'fullscreen', 'as_desktop', - 'kiosk', 'transparent']""" + 'kiosk', 'kiosk_emulation', 'transparent']""" export_setting_order = """['windows-x32', 'windows-x64', 'mac-x32', 'mac-x64', 'linux-x64', 'linux-x32']"""