1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- build_tools/scripts/base.py.orig 2021-11-16 08:07:24 UTC
+++ build_tools/scripts/base.py
@@ -1186,9 +1186,15 @@ def support_old_versions_plugins(out_dir):
def support_old_versions_plugins(out_dir):
if is_file(out_dir + "/pluginBase.js"):
return
- download("https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js", out_dir + "/plugins.js")
- download("https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js", out_dir + "/plugins-ui.js")
- download("https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css", out_dir + "/plugins.css")
+# download("https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js", out_dir + "/plugins.js")
+# download("https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js", out_dir + "/plugins-ui.js")
+# download("https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css", out_dir + "/plugins.css")
+ git_dir = get_script_dir() + "/../.."
+ plugins_dir = git_dir + "/sdkjs-plugins"
+ copy_file(plugins_dir + "/v1/plugins.js", out_dir + "/plugins.js")
+ copy_file(plugins_dir + "/v1/plugins-ui.js", out_dir + "/plugins-ui.js")
+ copy_file(plugins_dir + "/v1/plugins.css", out_dir + "/plugins.css")
+
content_plugin_base = ""
with open(get_path(out_dir + "/plugins.js"), "r") as file:
content_plugin_base += file.read()
@@ -1331,7 +1337,7 @@ def clone_marketplace_plugin(out_dir, is_name_as_guid=
def clone_marketplace_plugin(out_dir, is_name_as_guid=False, is_replace_paths=False, is_delete_git_dir=True, git_owner=""):
old_cur = os.getcwd()
os.chdir(out_dir)
- git_update("onlyoffice.github.io", False, True, git_owner)
+# git_update("onlyoffice.github.io", False, True, git_owner)
os.chdir(old_cur)
dst_dir_name = "marketplace"
|