@next-core/brick-container 2.94.4 → 2.94.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/preview.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"/><base href="<!--# echo var='base_href' default='/' -->"/><script>window.DEVELOPER_PREVIEW = true;</script><link href="preview.cc41c022ffed4f3fc8c5.css" rel="stylesheet"></head><body><div id="preview-root"><div id="main-mount-point"></div><div id="bg-mount-point" style="display: none"></div><div id="portal-mount-point"></div></div><script src="dll.be08f567.js"></script><script src="polyfill.5f60d909121d6c84d42d.js"></script><script src="preview.e567ac2e3de7bb4a6d0a.js"></script></body></html>
1
+ <!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"/><base href="<!--# echo var='base_href' default='/' -->"/><script>window.DEVELOPER_PREVIEW = true;</script><link href="preview.169f79b5c16f9d480543.css" rel="stylesheet"></head><body><div id="preview-root"><div id="main-mount-point"></div><div id="bg-mount-point" style="display: none"></div><div id="portal-mount-point"></div></div><script src="dll.be08f567.js"></script><script src="polyfill.5f60d909121d6c84d42d.js"></script><script src="preview.e567ac2e3de7bb4a6d0a.js"></script></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/brick-container",
3
- "version": "2.94.4",
3
+ "version": "2.94.6",
4
4
  "description": "Brick Container Server",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-container",
6
6
  "license": "GPL-3.0",
@@ -73,5 +73,5 @@
73
73
  "webpack-dev-server": "^4.11.1",
74
74
  "webpack-merge": "^5.8.0"
75
75
  },
76
- "gitHead": "6f579f9d9c6aaa900af15d88a5437d5529833243"
76
+ "gitHead": "4b9388f46079189ece2e8cbe7aceeaa7976f8098"
77
77
  }
@@ -155,8 +155,8 @@ def link_install_app_static_file(install_app_path):
155
155
  # 读取union-apps.json文件
156
156
  union_apps = read_union_apps_file(install_app_path)
157
157
  for app in union_apps:
158
- app_id = app["app_id"]
159
- version = app["version"]
158
+ app_id = app["app_id"].encode("utf-8")
159
+ version = app["version"].encode("utf-8")
160
160
  if app["use_brick_next_v3"]:
161
161
  subdir_snippet = "v3"
162
162
  else:
@@ -43,13 +43,15 @@ def get_version(install_path):
43
43
 
44
44
  def collect_app_info(app_path, report_app_id, version):
45
45
  if not os.path.exists(app_path):
46
- raise Exception("could not find app path {}".format(app_path))
46
+ print u"could not find app path {}".format(app_path)
47
+ return
47
48
  bootstrap_file_name = ""
48
49
  for f in os.listdir(app_path):
49
50
  if f.startswith("bootstrap-mini.") and f.endswith(".json"):
50
51
  bootstrap_file_name = f
51
52
  if bootstrap_file_name is "":
52
- raise Exception("bootstrap-mini.*.json not found in dir {}".format(app_path))
53
+ print u"bootstrap-mini.*.json not found in dir {}".format(app_path)
54
+ return
53
55
  bootstrap_file = os.path.join(app_path, bootstrap_file_name)
54
56
  print u"report app: {}, bootstrap_file: {}".format(report_app_id, bootstrap_file)
55
57
  with open(bootstrap_file) as f: