diff --git a/scripts/base.py b/scripts/base.py index 67839d95..7712fb17 100644 --- a/scripts/base.py +++ b/scripts/base.py @@ -1649,3 +1649,14 @@ def copy_dictionaries(src, dst, is_hyphen = True, is_spell = True): delete_file(dst + "/uk_UA/th_uk_UA.idx") return + +def check_module_version(actual_version, clear_func): + module_file = "./module.version" + current_module_version = readFile(module_file) + if (actual_version == current_module_version): + return + if is_file(module_file): + delete_file(module_file) + writeFile(module_file, actual_version) + clear_func() + return diff --git a/scripts/license_checker/config.json b/scripts/license_checker/config.json index 1a3e19c9..2b907483 100644 --- a/scripts/license_checker/config.json +++ b/scripts/license_checker/config.json @@ -181,9 +181,6 @@ "startMultiComm": "/*", "endMultiComm": " */", "prefix": " *", - "ignoreListDir": [ - "server/FileConverter/bin" - ], "ignoreListDirName": [ "node_modules" ] @@ -194,9 +191,16 @@ "startMultiComm": "/*", "endMultiComm": " */", "prefix": " *", - "ignoreListDir": [ - "server/FileConverter/bin" - ], + "ignoreListDirName": [ + "node_modules" + ] + }, + { + "dir": "server-license-key", + "fileExtensions": [".js"], + "startMultiComm": "/*", + "endMultiComm": " */", + "prefix": " *", "ignoreListDirName": [ "node_modules" ]