@aiot-toolkit/aiotpack 2.0.5-beta.8 → 2.0.5-widget-provider-beta.1

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.
Files changed (78) hide show
  1. package/README.md +46 -46
  2. package/lib/afterCompile/ux/UxAfterCompile.d.ts +28 -1
  3. package/lib/afterCompile/ux/UxAfterCompile.js +186 -38
  4. package/lib/afterWorks/ux/UxAfterWorks.js +1 -1
  5. package/lib/beforeCompile/ux/UxBeforeCompile.js +2 -2
  6. package/lib/compiler/enum/CompileMode.js +2 -2
  7. package/lib/compiler/javascript/JavascriptCompiler.d.ts +14 -0
  8. package/lib/compiler/javascript/JavascriptCompiler.js +91 -5
  9. package/lib/compiler/javascript/android/AndroidWebpackConfigurator.js +2 -2
  10. package/lib/compiler/javascript/android/plugin/WrapPlugin.js +7 -7
  11. package/lib/compiler/javascript/interface/IJavascriptCompileOption.d.ts +17 -1
  12. package/lib/compiler/javascript/interface/IJavascriptCompileOption.js +5 -1
  13. package/lib/compiler/javascript/vela/VelaWebpackConfigurator.js +3 -3
  14. package/lib/compiler/javascript/vela/enum/BuildNameFormatType.js +2 -2
  15. package/lib/compiler/javascript/vela/enum/EntryType.js +2 -2
  16. package/lib/compiler/javascript/vela/interface/IManifest.d.ts +11 -0
  17. package/lib/compiler/javascript/vela/interface/IManifest.js +11 -1
  18. package/lib/compiler/javascript/vela/model/Package.js +28 -28
  19. package/lib/compiler/javascript/vela/plugin/WrapPlugin.js +1 -2
  20. package/lib/compiler/javascript/vela/utils/Jsc.js +2 -2
  21. package/lib/compiler/javascript/vela/utils/UxCompileUtil.js +31 -17
  22. package/lib/compiler/javascript/vela/utils/ZipUtil.js +62 -62
  23. package/lib/compiler/javascript/vela/utils/signature/Base64.js +2 -2
  24. package/lib/compiler/javascript/vela/utils/signature/CRC32.js +2 -2
  25. package/lib/compiler/javascript/vela/utils/signature/SignUtil.js +68 -68
  26. package/lib/compiler/javascript/vela/utils/signature/Signer.js +6 -6
  27. package/lib/compiler/javascript/vela/utils/signature/pem/certificate.pem +26 -26
  28. package/lib/compiler/javascript/vela/utils/signature/pem/private.pem +50 -50
  29. package/lib/compiler/javascript/vela/utils/webpackLoader/IWebpackLoaderOption.d.ts +11 -0
  30. package/lib/compiler/javascript/vela/utils/webpackLoader/IWebpackLoaderOption.js +1 -0
  31. package/lib/compiler/javascript/vela/utils/webpackLoader/WebpackJsLoader.d.ts +2 -0
  32. package/lib/compiler/javascript/vela/utils/webpackLoader/WebpackJsLoader.js +27 -0
  33. package/lib/compiler/javascript/vela/utils/webpackLoader/WebpackUxLoader.d.ts +2 -0
  34. package/lib/compiler/javascript/vela/utils/webpackLoader/WebpackUxLoader.js +26 -0
  35. package/lib/compiler/tools/icu/ImageIcu.d.ts +37 -0
  36. package/lib/compiler/tools/icu/ImageIcu.js +110 -0
  37. package/lib/compiler/tools/icu/icu_darwin_arm64 +0 -0
  38. package/lib/compiler/tools/icu/icu_darwin_x64 +0 -0
  39. package/lib/compiler/tools/icu/icu_linux_arm64 +0 -0
  40. package/lib/compiler/tools/icu/icu_linux_x64 +0 -0
  41. package/lib/compiler/tools/icu/icu_win32_x64.exe +0 -0
  42. package/lib/config/UxConfig.d.ts +9 -4
  43. package/lib/config/UxConfig.js +29 -17
  44. package/lib/index.d.ts +1 -3
  45. package/lib/index.js +2 -28
  46. package/lib/loader/ux/JsLoader.js +2 -2
  47. package/lib/loader/ux/PngLoader.js +2 -2
  48. package/lib/loader/ux/android/UxLoader.js +2 -2
  49. package/lib/loader/ux/vela/AppUxLoader.js +3 -3
  50. package/lib/loader/ux/vela/HmlLoader.js +14 -14
  51. package/lib/loader/ux/vela/UxLoader.js +7 -0
  52. package/lib/utils/BeforeCompileUtils.d.ts +2 -0
  53. package/lib/utils/BeforeCompileUtils.js +34 -12
  54. package/lib/utils/PngUtils.js +11 -11
  55. package/lib/utils/ux/ManifestSchema.js +6 -3
  56. package/lib/utils/ux/UxFileUtils.d.ts +1 -0
  57. package/lib/utils/ux/UxFileUtils.js +56 -45
  58. package/lib/utils/ux/UxLoaderUtils.js +35 -35
  59. package/lib/utils/ux/android/AndroidUx.js +10 -10
  60. package/package.json +8 -11
  61. package/lib/afterCompile/xts/entryTemplate.d.ts +0 -21
  62. package/lib/afterCompile/xts/entryTemplate.js +0 -182
  63. package/lib/afterCompile/xts/generateRpk.d.ts +0 -3
  64. package/lib/afterCompile/xts/generateRpk.js +0 -28
  65. package/lib/afterCompile/xts/ts2wasm.d.ts +0 -8
  66. package/lib/afterCompile/xts/ts2wasm.js +0 -69
  67. package/lib/beforeCompile/xts/preInstall.d.ts +0 -3
  68. package/lib/beforeCompile/xts/preInstall.js +0 -54
  69. package/lib/config/XtsConfig.d.ts +0 -22
  70. package/lib/config/XtsConfig.js +0 -36
  71. package/lib/interface/ICompileOptions.d.ts +0 -6
  72. package/lib/interface/ICompileOptions.js +0 -7
  73. package/lib/loader/xts/XtsLoader.d.ts +0 -9
  74. package/lib/loader/xts/XtsLoader.js +0 -62
  75. package/lib/utils/xts/XtsFileLaneUtils.d.ts +0 -10
  76. package/lib/utils/xts/XtsFileLaneUtils.js +0 -61
  77. package/lib/utils/xts/XtsFollowWorks.d.ts +0 -34
  78. package/lib/utils/xts/XtsFollowWorks.js +0 -134
@@ -1,6 +1,6 @@
1
1
  import ICompileParam from '../../interface/ICompileParam';
2
2
  import BuildNameFormatType from '../vela/enum/BuildNameFormatType';
3
- export default interface IJavascriptCompileOption extends ICompileParam {
3
+ interface IJavascriptCompileOption extends ICompileParam {
4
4
  devtool?: string | false;
5
5
  /**
6
6
  * 源码路径(相对项目根目录)
@@ -48,6 +48,10 @@ export default interface IJavascriptCompileOption extends ICompileParam {
48
48
  * 启用应用自动化测试
49
49
  */
50
50
  enableE2e?: boolean;
51
+ /**
52
+ * 启用 png8 压缩
53
+ */
54
+ enableImagePng8?: boolean;
51
55
  /**
52
56
  * 启用代码体积分析,会生成 report.html 文件,可查看打包后各模块占用体积
53
57
  */
@@ -56,6 +60,17 @@ export default interface IJavascriptCompileOption extends ICompileParam {
56
60
  * 是否自动补全 manifest.json 中的 features 配置
57
61
  */
58
62
  completeFeature?: boolean;
63
+ /**
64
+ * 是否删除 console
65
+ *
66
+ * true:删除全部 console
67
+ * string: 指定要去除的console,如'log'、'warn'、'error'
68
+ *
69
+ * @example true
70
+ *
71
+ * @example log,warn
72
+ */
73
+ dropConsole?: boolean | string;
59
74
  /**
60
75
  * 获取远程证书
61
76
  */
@@ -70,3 +85,4 @@ export default interface IJavascriptCompileOption extends ICompileParam {
70
85
  certificate: Buffer;
71
86
  }>;
72
87
  }
88
+ export default IJavascriptCompileOption;
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -33,9 +33,9 @@ class VelaWebpackConfigurator {
33
33
  });
34
34
  }
35
35
 
36
- /**
37
- * 通过读取 manifest.json 生成 entry
38
- * @returns
36
+ /**
37
+ * 通过读取 manifest.json 生成 entry
38
+ * @returns
39
39
  */
40
40
  createEntry() {
41
41
  const {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- /**
8
- * 构建名格式类型枚举
7
+ /**
8
+ * 构建名格式类型枚举
9
9
  */
10
10
  var BuildNameFormatType = /*#__PURE__*/function (BuildNameFormatType) {
11
11
  BuildNameFormatType[BuildNameFormatType["DEFAULT"] = 1] = "DEFAULT";
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- /**
8
- * 入口类型枚举
7
+ /**
8
+ * 入口类型枚举
9
9
  */
10
10
  var EntryType = /*#__PURE__*/function (EntryType) {
11
11
  EntryType["APP"] = "app";
@@ -1,4 +1,13 @@
1
1
  import { Dictionary } from '@aiot-toolkit/shared-utils';
2
+ export declare const LITE_CARD_TYPE = "lite";
3
+ interface IWidget {
4
+ name: string;
5
+ component: string;
6
+ minCardPlatformVersion: Number;
7
+ providerUri: string;
8
+ sizes: string[];
9
+ type?: string;
10
+ }
2
11
  /**
3
12
  * vela manifest文件对应的数据结构
4
13
  */
@@ -16,6 +25,7 @@ export default interface IManifest {
16
25
  designWidth?: string | number;
17
26
  };
18
27
  router: {
28
+ widgets?: Record<string, IWidget>;
19
29
  entry: string;
20
30
  pages: Dictionary<{
21
31
  component?: string;
@@ -28,3 +38,4 @@ export default interface IManifest {
28
38
  export interface IFeatures {
29
39
  name: string;
30
40
  }
41
+ export {};
@@ -1 +1,11 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LITE_CARD_TYPE = void 0;
7
+ const LITE_CARD_TYPE = exports.LITE_CARD_TYPE = 'lite';
8
+
9
+ /**
10
+ * vela manifest文件对应的数据结构
11
+ */
@@ -5,58 +5,58 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _sharedUtils = require("@aiot-toolkit/shared-utils");
8
- /**
9
- * 文件资源
8
+ /**
9
+ * 文件资源
10
10
  */
11
11
 
12
- /**
13
- * 定义文件包
14
- *
15
- * 相当于虚拟的 rpk 包
12
+ /**
13
+ * 定义文件包
14
+ *
15
+ * 相当于虚拟的 rpk 包
16
16
  */
17
17
  class Package {
18
- /**
19
- * 包前缀
18
+ /**
19
+ * 包前缀
20
20
  */
21
21
 
22
- /**
23
- * 子包名称;整包没有
22
+ /**
23
+ * 子包名称;整包没有
24
24
  */
25
25
 
26
- /**
27
- * 是否为独立包
26
+ /**
27
+ * 是否为独立包
28
28
  */
29
29
  standalone = false;
30
30
 
31
- /**
32
- * 后缀名
31
+ /**
32
+ * 后缀名
33
33
  */
34
34
 
35
- /**
36
- * 资源路径匹配
35
+ /**
36
+ * 资源路径匹配
37
37
  */
38
38
 
39
39
  _resourceList = [];
40
40
 
41
- /**
42
- * 资源文件列表
41
+ /**
42
+ * 资源文件列表
43
43
  */
44
44
  get resourceList() {
45
45
  return this._resourceList;
46
46
  }
47
47
  _resourceDic = {};
48
48
 
49
- /**
50
- * 资源文件字典,以高效检查资源是否存在
49
+ /**
50
+ * 资源文件字典,以高效检查资源是否存在
51
51
  */
52
52
  get resourceDic() {
53
53
  return this._resourceDic;
54
54
  }
55
55
 
56
- /**
57
- * 是否已包含指定文件
58
- * @param filePath 文件路径
59
- * @returns
56
+ /**
57
+ * 是否已包含指定文件
58
+ * @param filePath 文件路径
59
+ * @returns
60
60
  */
61
61
  include(filePath) {
62
62
  return this.resourceDic[filePath];
@@ -65,10 +65,10 @@ class Package {
65
65
  return this.resourceList.find(item => item.fileBuildPath === filePath);
66
66
  }
67
67
 
68
- /**
69
- * 添加资源
70
- * @param data
71
- * @returns
68
+ /**
69
+ * 添加资源
70
+ * @param data
71
+ * @returns
72
72
  */
73
73
  addResource(data) {
74
74
  const {
@@ -33,8 +33,7 @@ class WrapPlugin {
33
33
  const source = compilation.assets[entry];
34
34
  const isApp = entry === 'app.js';
35
35
  const createFuncnName = isApp ? 'createAppHandler' : 'createPageHandler';
36
- compilation.assets[entry] = new _webpackSources.ConcatSource(`
37
- export default function(global, globalThis, window, $app_exports$, $app_evaluate$){
36
+ compilation.assets[entry] = new _webpackSources.ConcatSource(`export default function(global, globalThis, window, $app_exports$, $app_evaluate$){
38
37
  var org_app_require = $app_require$;
39
38
 
40
39
  (function(global, globalThis, window, $app_exports$, $app_evaluate$){
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _sharedUtils = require("@aiot-toolkit/shared-utils");
8
- /**
9
- * Jsc
8
+ /**
9
+ * Jsc
10
10
  */
11
11
  class Jsc {
12
12
  constructor(projectPath, buildPath) {
@@ -8,6 +8,7 @@ var _sharedUtils = require("@aiot-toolkit/shared-utils");
8
8
  var _fsExtra = _interopRequireDefault(require("fs-extra"));
9
9
  var _path = _interopRequireDefault(require("path"));
10
10
  var _EntryType = _interopRequireDefault(require("../enum/EntryType"));
11
+ var _IManifest = require("../interface/IManifest");
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
13
  class UxCompileUtil {
13
14
  // 摘要文件夹
@@ -30,12 +31,12 @@ class UxCompileUtil {
30
31
  });
31
32
  }
32
33
 
33
- /**
34
- * 从项目配置文件中解析出入口文件
35
- * @param config 项目配置文件的内容,应为json对象
36
- * @param codeDir 源码目录
37
- * @param projectPath 项目目录
38
- * @returns {[入口名]:源文件路径}
34
+ /**
35
+ * 从项目配置文件中解析出入口文件
36
+ * @param config 项目配置文件的内容,应为json对象
37
+ * @param codeDir 源码目录
38
+ * @param projectPath 项目目录
39
+ * @returns {[入口名]:源文件路径}
39
40
  */
40
41
  static resolveEntries(config, codeDir, projectPath) {
41
42
  const {
@@ -80,6 +81,10 @@ class UxCompileUtil {
80
81
  throw new Error(`Compilation failed: please confirm that '${routePath}' configured by router.pages in manifest.json is the directory name`);
81
82
  }
82
83
  const conf = confs[routePath];
84
+ //轻卡无需打包
85
+ if (conf.type === _IManifest.LITE_CARD_TYPE) {
86
+ return;
87
+ }
83
88
  const entryKey = _path.default.join(routePath, conf.component);
84
89
  const filePath = this.resolveFile(_path.default.join(codeDir, entryKey));
85
90
  if (!filePath) {
@@ -125,16 +130,25 @@ class UxCompileUtil {
125
130
  }
126
131
  }
127
132
  }
133
+ // 5. 添加 widget_provider
134
+ const {
135
+ widgetProvider
136
+ } = config;
137
+ if (widgetProvider?.length > 0) {
138
+ for (const widgetItem of widgetProvider) {
139
+ result[widgetItem.path] = './src/' + widgetItem.path;
140
+ }
141
+ }
128
142
  return result;
129
143
  }
130
144
 
131
- /**
132
- * 通过无后缀的文件名路径获取存在的文件路径
133
- *
134
- * @example
135
- * const path = resolveFile('/project/a')
136
- * // path = '/project/a.ux'
137
- * @param filePath
145
+ /**
146
+ * 通过无后缀的文件名路径获取存在的文件路径
147
+ *
148
+ * @example
149
+ * const path = resolveFile('/project/a')
150
+ * // path = '/project/a.ux'
151
+ * @param filePath
138
152
  */
139
153
  static resolveFile(filePath) {
140
154
  const extensionList = this.getExtensionList();
@@ -147,10 +161,10 @@ class UxCompileUtil {
147
161
  return '';
148
162
  }
149
163
 
150
- /**
151
- * 获取ux文件支持的后缀列表
152
- * @param withDot
153
- * @returns
164
+ /**
165
+ * 获取ux文件支持的后缀列表
166
+ * @param withDot
167
+ * @returns
154
168
  */
155
169
  static getExtensionList() {
156
170
  let withDot = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
@@ -15,10 +15,10 @@ var _Package = _interopRequireDefault(require("../model/Package"));
15
15
  var _UxCompileUtil = _interopRequireDefault(require("./UxCompileUtil"));
16
16
  var _SignUtil = _interopRequireDefault(require("./signature/SignUtil"));
17
17
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
- /**
19
- * Zip 用于将打包成功的 build 目录按特定规则压缩成 rpk
20
- *
21
- * @see ZipUtil.createRpk 打包的完整规则
18
+ /**
19
+ * Zip 用于将打包成功的 build 目录按特定规则压缩成 rpk
20
+ *
21
+ * @see ZipUtil.createRpk 打包的完整规则
22
22
  */
23
23
  class ZipUtil {
24
24
  static DIGEST_HASH_JSON = 'hash.json';
@@ -32,8 +32,8 @@ class ZipUtil {
32
32
  // 打包信息文件
33
33
  static BUILD_FILE_PATH = `${this.META_PATH}/build.txt`;
34
34
 
35
- /**
36
- * zip压缩参数
35
+ /**
36
+ * zip压缩参数
37
37
  */
38
38
  static ZIP_OPTION = {
39
39
  type: 'nodebuffer',
@@ -43,19 +43,19 @@ class ZipUtil {
43
43
  }
44
44
  };
45
45
 
46
- /**
47
- * dist 目录生成 rpk
48
- * 1. 获取文件列表
49
- * 1. 过滤出需要的文件
50
- * 2. 按配置排序
51
- * 2. 生成文件流
52
- * 1. 每个文件生成加密串
53
- * 2. 生成元数据流
54
- * 3. 把元数据流和普通文件合并到一个流
55
- * 3. 写入到硬盘
56
- * @param dist
57
- * @param param
58
- * @returns 生成的 rpk 文件名
46
+ /**
47
+ * dist 目录生成 rpk
48
+ * 1. 获取文件列表
49
+ * 1. 过滤出需要的文件
50
+ * 2. 按配置排序
51
+ * 2. 生成文件流
52
+ * 1. 每个文件生成加密串
53
+ * 2. 生成元数据流
54
+ * 3. 把元数据流和普通文件合并到一个流
55
+ * 3. 写入到硬盘
56
+ * @param dist
57
+ * @param param
58
+ * @returns 生成的 rpk 文件名
59
59
  */
60
60
  static async createRpk(dist, param) {
61
61
  const config = _UxFileUtils.default.getManifestInfo(param.projectPath, param.sourceRoot);
@@ -102,13 +102,13 @@ class ZipUtil {
102
102
  return await this.createZipBufferFromFileList(packageFileList, comment);
103
103
  }
104
104
 
105
- /**
106
- *
107
- * @param buffer
108
- * @param param
109
- * @param fileName
110
- *
111
- * @returns 生成的文件名
105
+ /**
106
+ *
107
+ * @param buffer
108
+ * @param param
109
+ * @param fileName
110
+ *
111
+ * @returns 生成的文件名
112
112
  */
113
113
  static async generateDistFile(buffer, param, fileName) {
114
114
  const {
@@ -121,11 +121,11 @@ class ZipUtil {
121
121
  return fileName;
122
122
  }
123
123
 
124
- /**
125
- * 根据文件列表创建 zip 的 Buffer
126
- * @param fileList 文件列表
127
- * @param comment zip 的注释
128
- * @returns
124
+ /**
125
+ * 根据文件列表创建 zip 的 Buffer
126
+ * @param fileList 文件列表
127
+ * @param comment zip 的注释
128
+ * @returns
129
129
  */
130
130
  static async createZipBufferFromFileList(fileList, comment) {
131
131
  const zip = new _jszip.default();
@@ -138,12 +138,12 @@ class ZipUtil {
138
138
  });
139
139
  }
140
140
 
141
- /**
142
- * 创建包,一个包对应一个 rpk 文件
143
- * @param param
144
- * @param config
145
- * @param files
146
- * @returns
141
+ /**
142
+ * 创建包,一个包对应一个 rpk 文件
143
+ * @param param
144
+ * @param config
145
+ * @param files
146
+ * @returns
147
147
  */
148
148
  static async createPackagesDefinition(param, config, files) {
149
149
  const {
@@ -187,17 +187,17 @@ class ZipUtil {
187
187
  };
188
188
  }
189
189
 
190
- /**
191
- * 获取有序的文件列表
192
- *
193
- * 打包后的文件夹生成vela 应用程序,需要先把文件排序,再进行压缩
194
- *
195
- * @see getPriorities 获取排序规则
196
- *
197
- * @param dist 打包后的文件目录的绝对路径
198
- * @param param 打包参数
199
- * @param manifest manifest.json内容的json对象
200
- * @returns
190
+ /**
191
+ * 获取有序的文件列表
192
+ *
193
+ * 打包后的文件夹生成vela 应用程序,需要先把文件排序,再进行压缩
194
+ *
195
+ * @see getPriorities 获取排序规则
196
+ *
197
+ * @param dist 打包后的文件目录的绝对路径
198
+ * @param param 打包参数
199
+ * @param manifest manifest.json内容的json对象
200
+ * @returns
201
201
  */
202
202
  static getSortedFiles(dist, param, manifest) {
203
203
  const priorities = this.getPriorities(manifest);
@@ -229,11 +229,11 @@ class ZipUtil {
229
229
  return result;
230
230
  }
231
231
 
232
- /**
233
- * 根据 **固定规则**、**manifest.json入口配置**,获取压缩文件时使用的排序规则
234
- *
235
- * @param param
236
- * @returns
232
+ /**
233
+ * 根据 **固定规则**、**manifest.json入口配置**,获取压缩文件时使用的排序规则
234
+ *
235
+ * @param param
236
+ * @returns
237
237
  */
238
238
  static getPriorities(manifest) {
239
239
  const entrySkFiles = []; // todo
@@ -250,8 +250,8 @@ class ZipUtil {
250
250
  return result;
251
251
  }
252
252
 
253
- /**
254
- * 创建打包的注释属性
253
+ /**
254
+ * 创建打包的注释属性
255
255
  */
256
256
  static createComment(param) {
257
257
  const obj = {
@@ -266,13 +266,13 @@ class ZipUtil {
266
266
  return obj;
267
267
  }
268
268
 
269
- /**
270
- * 生成rpk的最终的Buffer
271
- *
272
- * @description 使用证书对原始rpk包的 buffer 签名. 签名失败,返回原始包; 签名成功,返回新包
273
- * @param fullPackage 原始包 buffer
274
- * @param signConfig 证书信息
275
- * @returns
269
+ /**
270
+ * 生成rpk的最终的Buffer
271
+ *
272
+ * @description 使用证书对原始rpk包的 buffer 签名. 签名失败,返回原始包; 签名成功,返回新包
273
+ * @param fullPackage 原始包 buffer
274
+ * @param signConfig 证书信息
275
+ * @returns
276
276
  */
277
277
  static async buildProjectAndOutput(target, signConfig) {
278
278
  let result;
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- /**
8
- * Base64
7
+ /**
8
+ * Base64
9
9
  */
10
10
  class Base64 {
11
11
  static re = (() => new RegExp(/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/))();
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- /**
8
- * CRC32
7
+ /**
8
+ * CRC32
9
9
  */
10
10
  class CRC32 {
11
11
  static table = '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D';