Skip to content

Commit

Permalink
Fix google play platform build appBundle failure issue (#18063)
Browse files Browse the repository at this point in the history
Co-authored-by: qiuguohua <[email protected]>
  • Loading branch information
qiuguohua and qiuguohua authored Dec 20, 2024
1 parent 1b5b5f3 commit eb949c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/native-pack-tool/source/platforms/google-play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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}`);
Expand Down

0 comments on commit eb949c6

Please sign in to comment.