Skip to content

Commit 53823a8

Browse files
author
Chad Morrow
authored
fix: call the gradle wrapper correctly on windows (#175)
1 parent 6276f59 commit 53823a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-native-builder-bob/src/utils/androidAssemble.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export default async function androidAssemble({
2424
)}`
2525
);
2626

27-
const gradleWrapper =
28-
'./gradlew' + (platform() === 'win32' ? './gradlew.bat' : '');
27+
const gradleWrapper = platform() === 'win32' ? 'gradlew.bat' : './gradlew';
2928
if (await fs.pathExists(path.join(androidPath, gradleWrapper))) {
3029
execFileSync(gradleWrapper, ['assemble'], { cwd: androidPath });
3130
} else {

0 commit comments

Comments
 (0)