From c0ead7a4c766cb4c31166826cf943a45de1de912 Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Thu, 5 Aug 2021 09:04:07 +0300 Subject: [PATCH] Add simple script for update only js (used only module config option) --- scripts/build_js.py | 11 ++++++----- scripts/update_js.py | 8 ++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 scripts/update_js.py diff --git a/scripts/build_js.py b/scripts/build_js.py index 2717f9e..9f88e62 100644 --- a/scripts/build_js.py +++ b/scripts/build_js.py @@ -20,11 +20,12 @@ def make(): base.create_dir(out_dir) # builder - build_interface(base_dir + "/../web-apps/build") - build_sdk_builder(base_dir + "/../sdkjs/build") - base.create_dir(out_dir + "/builder") - base.copy_dir(base_dir + "/../web-apps/deploy/web-apps", out_dir + "/builder/web-apps") - base.copy_dir(base_dir + "/../sdkjs/deploy/sdkjs", out_dir + "/builder/sdkjs") + if (config.option("module") != "mobile") and (config.option("module") != "desktop"): + build_interface(base_dir + "/../web-apps/build") + build_sdk_builder(base_dir + "/../sdkjs/build") + base.create_dir(out_dir + "/builder") + base.copy_dir(base_dir + "/../web-apps/deploy/web-apps", out_dir + "/builder/web-apps") + base.copy_dir(base_dir + "/../sdkjs/deploy/sdkjs", out_dir + "/builder/sdkjs") # desktop if config.check_option("module", "desktop"): diff --git a/scripts/update_js.py b/scripts/update_js.py new file mode 100644 index 0000000..0a8610f --- /dev/null +++ b/scripts/update_js.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python + +import config +import base +import build_js + +config.parse() +build_js.make()