@htyf-mp/cli 0.7.3 → 0.7.4

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/README.md CHANGED
@@ -105,7 +105,7 @@ node src/index.mjs
105
105
  3. 提示输入版本号(默认在当前版本基础上自动 +1,例如 `1.0.0 -> 1.0.1`)。
106
106
  4. 更新 `app.json` 中的版本号并执行构建,将资源输出到 `dist` 目录。
107
107
 
108
- 构建完成后,会在压缩包旁生成 `dist/share-qrcode.png`,并在终端显示分享链接和二维码。扫码进入应用分享页,二维码包含本次构建的应用信息和版本。原有 `dist/dist/qrcode.png` 仍为资源下载二维码。
108
+ 构建完成后,会在压缩包旁生成 `dist/qrcode.png`,并在终端显示分享链接和二维码。扫码进入应用分享页,二维码包含本次构建的应用信息和版本。原有 `dist/dist/qrcode.png` 仍为资源下载二维码。
109
109
 
110
110
  使用分享二维码前,请将资源包和 `app.json` 分别上传到配置中的 `zipUrl` 和 `appUrlConfig` 地址,供红糖云服 App 拉取与更新。
111
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": {
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "23f12d9168179b8993548cec25ec4575930ef80d"
85
+ "gitHead": "d6e78c9de9837bedf71d540c7129c3d1eeb4c3ee"
86
86
  }
package/src/build.mjs CHANGED
@@ -83,7 +83,7 @@ async function syncWebH5Output(projectDistRoot, zipInputDir) {
83
83
  'build', // RN bundle 输出目录
84
84
  'app.json',
85
85
  'manifest.json',
86
- 'share-qrcode.png', // 分享图片不属于 H5 应用资源
86
+ 'qrcode.png', // 分享图片不属于 H5 应用资源
87
87
  ]);
88
88
 
89
89
  for (const entry of entries) {
@@ -121,7 +121,7 @@ async function generateBuildQrCode(outputPath, appJson) {
121
121
  /** 在压缩包旁生成分享二维码,使用与 App 分享页一致的应用信息协议。 */
122
122
  async function generateShareQrCode(outputPath, appJson) {
123
123
  const shareUrl = `https://mp.dagouzhi.com/share?data=${encodeURIComponent(JSON.stringify(appJson))}`;
124
- const qrFilePath = path.join(outputPath, 'share-qrcode.png');
124
+ const qrFilePath = path.join(outputPath, 'qrcode.png');
125
125
  await QRCode.toFile(qrFilePath, shareUrl, { scale: 6, margin: 4 });
126
126
  Logger.success(`分享二维码已生成: ${qrFilePath}`);
127
127
  Logger.info(`分享链接: ${shareUrl}`);