From 59fdf114cf7d2a0d577997fff5560d1af87ef4dc Mon Sep 17 00:00:00 2001 From: qiuguohua Date: Thu, 19 Dec 2024 23:16:43 +0800 Subject: [PATCH] Fix google play platform build appBundle failure issue --- scripts/native-pack-tool/source/platforms/google-play.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/native-pack-tool/source/platforms/google-play.ts b/scripts/native-pack-tool/source/platforms/google-play.ts index dc02b01b25e..74659e8012f 100644 --- a/scripts/native-pack-tool/source/platforms/google-play.ts +++ b/scripts/native-pack-tool/source/platforms/google-play.ts @@ -175,7 +175,7 @@ export class GooglePlayPackTool extends NativePackTool { if (options.androidInstant) { buildMode = `bundle${outputMode}`; } else { - buildMode = `${this.params.projectName}:bundle${outputMode}`; + buildMode = `${this.projectNameASCII()}:bundle${outputMode}`; } await cchelper.runCmd(gradle, [buildMode], false, projDir); } @@ -504,7 +504,7 @@ export class GooglePlayPackTool extends NativePackTool { } if (options.appBundle) { - apkName = `${this.params.projectName}-${suffix}.aab`; + apkName = `${this.projectNameASCII()}-${suffix}.aab`; apkPath = ps.join(this.outputsDir(), `bundle/${suffix}/${apkName}`); if (!fs.existsSync(apkPath)) { throw new Error(`instant apk not found at ${apkPath}`);