@@ -29,6 +29,10 @@ def processedLocation20403 = "${buildDirLoc}/generated-sources-20403"
2929def frontSlashed16750 = processedLocation16750. replaceAll(" \\\\ " , " /" )
3030def 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+
3236sourceSets. main. java. srcDirs + = ' src/main/java'
3337sourceSets. main. java. srcDirs + = processedLocation16750
3438sourceSets. 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