Skip to content

Commit ff6012d

Browse files
Chad Morrowokwasniewski
authored andcommitted
fix: call the gradle wrapper correctly on windows (#175)
1 parent bd662f2 commit ff6012d

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)