@htyf-mp/cli 0.2.9 → 0.2.10

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": {
package/src/build.mjs CHANGED
@@ -275,10 +275,10 @@ export async function mpBuildShell(newAppInfo, isGodot = false) {
275
275
 
276
276
  // Godot 项目使用平台特定的文件名(如 dist.ios.dgz 或 dist.android.dgz)
277
277
  const platformName = godotOptions.platform === 'ios' ? 'ios' : 'android';
278
- distPackagePath = path.join(mpOutputPath, `dist.[${platformName}].dgz`);
278
+ distPackagePath = path.join(mpOutputPath, `dist.${platformName}.dgz`);
279
279
 
280
280
  // 更新 app.json 中的 zipUrl
281
- appJson.zipUrl = newAppInfo.zipUrl || `${newAppInfo.host}/dist.[${platformName}].dgz`;
281
+ appJson.zipUrl = newAppInfo.zipUrl || `${newAppInfo.host}/dist.${platformName}.dgz`;
282
282
  await fse.writeJson(appJsonPath, appJson, { spaces: 2 });
283
283
  }
284
284