Skip to content

Commit b655c76

Browse files
committed
Made the bun location configurable
1 parent 3f24ec1 commit b655c76

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

MeepMeepTesting/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def processedLocation20403 = "${buildDirLoc}/generated-sources-20403"
2929
def frontSlashed16750 = processedLocation16750.replaceAll("\\\\", "/")
3030
def frontSlashed20403 = processedLocation20403.replaceAll("\\\\", "/")
3131

32+
// This needs to point to the bun binary. You can find it by typing
33+
// 'which bun' in your terminal. It generally installs itself to '/.bun/bin/bun'
34+
def bunBinary = System.properties['user.home'] + '/.bun/bin/bun'
35+
3236
sourceSets.main.java.srcDirs += 'src/main/java'
3337
sourceSets.main.java.srcDirs += processedLocation16750
3438
sourceSets.main.java.srcDirs += processedLocation20403
@@ -49,7 +53,7 @@ task makeMeepMeep16750Java {
4953

5054
doLast {
5155
exec {
52-
commandLine 'bun', 'meep', frontSlashed16750, 'DO_NOT_EDIT_16750', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
56+
commandLine bunBinary, 'meep', frontSlashed16750, 'DO_NOT_EDIT_16750', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
5357
}
5458
}
5559
}
@@ -68,7 +72,7 @@ task makeMeepMeep20403Java {
6872

6973
doLast {
7074
exec {
71-
commandLine 'bun', 'meep', frontSlashed20403, 'DO_NOT_EDIT_20403', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
75+
commandLine bunBinary, 'meep', frontSlashed20403, 'DO_NOT_EDIT_20403', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
7276
}
7377
}
7478
}

0 commit comments

Comments
 (0)