@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.
- package/package.json +1 -1
- package/src/build.mjs +2 -2
package/package.json
CHANGED
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
|
|
278
|
+
distPackagePath = path.join(mpOutputPath, `dist.${platformName}.dgz`);
|
|
279
279
|
|
|
280
280
|
// 更新 app.json 中的 zipUrl
|
|
281
|
-
appJson.zipUrl = newAppInfo.zipUrl || `${newAppInfo.host}/dist
|
|
281
|
+
appJson.zipUrl = newAppInfo.zipUrl || `${newAppInfo.host}/dist.${platformName}.dgz`;
|
|
282
282
|
await fse.writeJson(appJsonPath, appJson, { spaces: 2 });
|
|
283
283
|
}
|
|
284
284
|
|