Skip to content

Commit 9ef3bcd

Browse files
committed
Update make.sh
1 parent f8fc175 commit 9ef3bcd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

make.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
if [[ -z "$INSTALLDIR" ]]; then
44
INSTALLDIR="$HOME/Documents/Arduino"
55
fi
6+
if [[ -z "$IDEDIR" ]]; then
7+
IDEDIR="/Applications/Arduino.app/Contents/Java/"
8+
#IDEDIR="../../../"
9+
fi
610
echo "INSTALLDIR: $INSTALLDIR"
711

8-
pde_path=`find ../../../ -name pde.jar`
9-
core_path=`find ../../../ -name arduino-core.jar`
10-
lib_path=`find ../../../ -name commons-codec-1.7.jar`
12+
pde_path=`find $IDEDIR -name pde.jar`
13+
core_path=`find $IDEDIR -name arduino-core.jar`
14+
lib_path=`find $IDEDIR -name commons-codec-1.7.jar`
1115
if [[ -z "$core_path" || -z "$pde_path" ]]; then
1216
echo "Some java libraries have not been built yet (did you run ant build?)"
1317
return 1
@@ -19,7 +23,7 @@ echo "lib_path: $lib_path"
1923
set -e
2024

2125
mkdir -p bin
22-
javac -target 1.8 -cp "$pde_path:$core_path:$lib_path" \
26+
/Library/Java/JavaVirtualMachines/openlogic-openjdk-8.jdk/Contents/Home/bin/javac -target 1.8 -cp "$pde_path:$core_path:$lib_path" \
2327
-d bin src/ESP32FS.java
2428

2529
pushd bin

0 commit comments

Comments
 (0)