Esempio n. 1
0
    if base.is_file(branding_dir + "/build_tools/make.py"):
        base.check_build_version(branding_dir + "/build_tools")
        base.set_env("OO_RUNNING_BRANDING", "1")
        base.set_env("OO_BRANDING", config.option("branding"))
        base.cmd_in_dir(branding_dir + "/build_tools", "python", ["make.py"])
        exit(0)

# correct defaults (the branding repo is already updated)
config.parse_defaults()

base.check_build_version(base_dir)

# update
if ("1" == config.option("update")):
    base.git_update("core")
    base.git_update("sdkjs")
    base.sdkjs_addons_checkout()
    base.sdkjs_plugins_checkout()
    base.sdkjs_plugins_server_checkout()
    base.git_update("web-apps")
    base.web_apps_addons_checkout()
    base.git_update("desktop-sdk")
    base.git_update("dictionaries")

    if config.check_option("module", "builder"):
        base.git_update("DocumentBuilder")

    if config.check_option("module", "desktop"):
        base.git_update("desktop-apps")
Esempio n. 2
0
    dependence.check_gitPath()

if (dependence.check_gh() != True or dependence.check_gh_auth() != True):
    sys.exit(0)

base.cmd_in_dir('../../', 'python', [
    'configure.py', '--branding', 'onlyoffice', '--branding-url',
    'https://github.com/ONLYOFFICE/onlyoffice.git', '--branch', branch_from,
    '--module', 'core desktop builder server mobile', '--update', '1',
    '--update-light', '1', '--clean', '0'
])

# parse configuration
config.parse()

base.git_update('onlyoffice')

# correct defaults (the branding repo is already updated)
config.parse_defaults()

repositories = base.get_repositories()

# Add other plugins
repositories.update(
    base.get_plugins('autocomplete, easybib, glavred, wordpress'))
# Add other repositories
repositories['core-ext'] = [True, False]

base.update_repositories(repositories)

repositories['onlyoffice'] = [True, False]