Skip to content

Commit 44bdc36

Browse files
committed
set executable flag of gradlew on Linux and Mac
1 parent bedf270 commit 44bdc36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/processing/mode/android/AndroidBuild.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,11 @@ private File createTempBuildFolder(final Sketch sketch) throws IOException {
939939

940940
private void installGradlew(File exportFolder) throws IOException {
941941
File gradlewFile = mode.getContentFile("mode/gradlew.zip");
942-
AndroidUtil.extractFolder(gradlewFile, exportFolder, true, true);
942+
AndroidUtil.extractFolder(gradlewFile, exportFolder, false, true);
943+
if (Platform.isMacOS() || Platform.isLinux()) {
944+
File execFile = new File(exportFolder, "gradlew");
945+
execFile.setExecutable(true);
946+
}
943947
}
944948

945949

0 commit comments

Comments
 (0)