def Customize(options): package = 'org.xwalk.app.template' if options.package: package = options.package name = 'AppTemplate' if options.name: name = options.name app_version = '' if options.app_version: app_version = options.app_version app_versionCode = MakeVersionCode(options) app_root = '' if options.app_root: app_root = os.path.expanduser(options.app_root) remote_debugging = '' if options.enable_remote_debugging: remote_debugging = '--enable-remote-debugging' fullscreen_flag = '' if options.fullscreen: fullscreen_flag = '-f' orientation = 'unspecified' if options.orientation: orientation = options.orientation icon = '' if options.icon: icon = '%s' % os.path.expanduser(options.icon) CustomizeAll(app_versionCode, options.description, options.icon_dict, options.permissions, options.app_url, app_root, options.app_local_path, remote_debugging, fullscreen_flag, options.keep_screen_on, options.extensions, options.manifest, icon, package, name, app_version, orientation, options.xwalk_command_line, options.compressor)
def Customize(options, app_info, manifest): app_info.package = options.package app_info.app_name = options.name # 'org.xwalk.my_first_app' => 'MyFirstApp' android_name = options.package.split('.')[-1].split('_') app_info.android_name = ''.join( [i.capitalize() for i in android_name if i]) if options.app_version: app_info.app_version = options.app_version if options.app_root: app_info.app_root = os.path.expanduser(options.app_root) if options.enable_remote_debugging: app_info.remote_debugging = '--enable-remote-debugging' if options.use_animatable_view: app_info.use_animatable_view = '--use-animatable-view' if options.fullscreen: app_info.fullscreen_flag = '-f' if options.orientation: app_info.orientation = options.orientation if options.icon: app_info.icon = '%s' % os.path.expanduser(options.icon) if options.xwalk_apk_url: app_info.xwalk_apk_url = options.xwalk_apk_url if options.mode: app_info.mode = options.mode #Add local extensions to extension list. extension_binary_path_list = GetExtensionBinaryPathList() if len(extension_binary_path_list) > 0: if options.extensions is None: options.extensions = "" else: options.extensions += os.pathsep for item in extension_binary_path_list: options.extensions += item options.extensions += os.pathsep #trim final path separator options.extensions = options.extensions[0:-1] CustomizeAll(app_info, options.description, options.icon_dict, options.permissions, options.app_url, options.app_local_path, options.keep_screen_on, options.extensions, manifest, options.xwalk_command_line, options.compressor)
def Customize(options, app_info, manifest): app_info.package = options.package app_info.app_name = options.name app_info.android_name = ReplaceSpaceWithUnderscore(options.name) if options.app_version: app_info.app_version = options.app_version app_info.app_versionCode = MakeVersionCode(options) if options.app_root: app_info.app_root = os.path.expanduser(options.app_root) if options.enable_remote_debugging: app_info.remote_debugging = '--enable-remote-debugging' if options.fullscreen: app_info.fullscreen_flag = '-f' if options.orientation: app_info.orientation = options.orientation if options.icon: app_info.icon = '%s' % os.path.expanduser(options.icon) CustomizeAll(app_info, options.description, options.icon_dict, options.permissions, options.app_url, options.app_local_path, options.keep_screen_on, options.extensions, manifest, options.xwalk_command_line, options.compressor)
def Customize(options, app_info, manifest): app_info.package = options.package app_info.app_name = options.name # 'org.xwalk.my_first_app' => 'MyFirstApp' android_name = options.package.split('.')[-1].split('_') app_info.android_name = ''.join([i.capitalize() for i in android_name if i]) if options.app_version: app_info.app_version = options.app_version app_info.app_versionCode = MakeVersionCode(options) if options.app_root: app_info.app_root = os.path.expanduser(options.app_root) if options.enable_remote_debugging: app_info.remote_debugging = '--enable-remote-debugging' if options.fullscreen: app_info.fullscreen_flag = '-f' if options.orientation: app_info.orientation = options.orientation if options.icon: app_info.icon = '%s' % os.path.expanduser(options.icon) CustomizeAll(app_info, options.description, options.icon_dict, options.permissions, options.app_url, options.app_local_path, options.keep_screen_on, options.extensions, manifest, options.xwalk_command_line, options.compressor)