Skip to content

Commit ce5fbd2

Browse files
authored
Merge pull request #3 from bergdahl/master
Fixed to support Big Sur
2 parents a188a60 + 554807b commit ce5fbd2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

make.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ if [[ -z "$INSTALLDIR" ]]; then
55
fi
66
echo "INSTALLDIR: $INSTALLDIR"
77

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`
8+
pde_path=`find /Applications/Arduino.app/ -name pde.jar`
9+
core_path=`find /Applications/Arduino.app/ -name arduino-core.jar`
10+
lib_path=`find /Applications/Arduino.app/ -name commons-codec-1.7.jar`
1111
if [[ -z "$core_path" || -z "$pde_path" ]]; then
1212
echo "Some java libraries have not been built yet (did you run ant build?)"
1313
return 1
@@ -19,7 +19,7 @@ echo "lib_path: $lib_path"
1919
set -e
2020

2121
mkdir -p bin
22-
javac -target 1.8 -cp "$pde_path:$core_path:$lib_path" \
22+
javac -source 1.8 -target 1.8 -cp "$pde_path:$core_path:$lib_path" \
2323
-d bin src/ESP32FS.java
2424

2525
pushd bin

src/ESP32FS.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,13 @@ private void createAndUpload(){
202202
String toolExtension = ".py";
203203
if(PreferencesData.get("runtime.os").contentEquals("windows")) {
204204
toolExtension = ".exe";
205-
} else if(PreferencesData.get("runtime.os").contentEquals("macosx")) {
206-
toolExtension = "";
207205
}
208206

209207
String pythonCmd;
210208
if(PreferencesData.get("runtime.os").contentEquals("windows"))
211209
pythonCmd = "python.exe";
212210
else
213-
pythonCmd = "python";
211+
pythonCmd = "python3";
214212

215213
String mkspiffsCmd;
216214
if(PreferencesData.get("runtime.os").contentEquals("windows"))

0 commit comments

Comments
 (0)