Skip to content

Commit 4e766e3

Browse files
authored
chmod: Grant execute permission to Gradle wrapper on Unix-like systems (#19216)
1 parent 1045007 commit 4e766e3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/native-pack-tool/source/platforms/android.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export class AndroidPackTool extends NativePackTool {
104104
if (process.platform === 'win32') {
105105
gradle += '.bat';
106106
} else {
107+
await fs.chmod(ps.join(projDir, 'gradlew'), '755');
107108
gradle = './' + gradle;
108109
}
109110

scripts/native-pack-tool/source/platforms/google-play.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class GooglePlayPackTool extends NativePackTool {
144144
if (process.platform === 'win32') {
145145
gradle += '.bat';
146146
} else {
147+
await fs.chmod(ps.join(projDir, 'gradlew'), '755');
147148
gradle = './' + gradle;
148149
}
149150

0 commit comments

Comments
 (0)