File tree 2 files changed +41
-4
lines changed
2 files changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ if [[ -z "$INSTALLDIR" ]]; then
5
5
fi
6
6
echo " INSTALLDIR: $INSTALLDIR "
7
7
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`
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`
11
11
if [[ -z " $core_path " || -z " $pde_path " ]]; then
12
12
echo " Some java libraries have not been built yet (did you run ant build?)"
13
13
return 1
@@ -19,7 +19,7 @@ echo "lib_path: $lib_path"
19
19
set -e
20
20
21
21
mkdir -p bin
22
- javac -source 1.8 - target 1.8 -cp " $pde_path :$core_path :$lib_path " \
22
+ javac -target 1.8 -cp " $pde_path :$core_path :$lib_path " \
23
23
-d bin src/ESP32FS.java
24
24
25
25
pushd bin
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [[ -z " $INSTALLDIR " ]]; then
4
+ INSTALLDIR=" $HOME /Documents/Arduino"
5
+ fi
6
+ echo " INSTALLDIR: $INSTALLDIR "
7
+
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`
11
+ if [[ -z " $core_path " || -z " $pde_path " ]]; then
12
+ echo " Some java libraries have not been built yet (did you run ant build?)"
13
+ return 1
14
+ fi
15
+ echo " pde_path: $pde_path "
16
+ echo " core_path: $core_path "
17
+ echo " lib_path: $lib_path "
18
+
19
+ set -e
20
+
21
+ mkdir -p bin
22
+ javac -source 1.8 -target 1.8 -cp " $pde_path :$core_path :$lib_path " \
23
+ -d bin src/ESP32FS.java
24
+
25
+ pushd bin
26
+ mkdir -p $INSTALLDIR /tools
27
+ rm -rf $INSTALLDIR /tools/ESP32FS
28
+ mkdir -p $INSTALLDIR /tools/ESP32FS/tool
29
+ zip -r $INSTALLDIR /tools/ESP32FS/tool/esp32fs.jar *
30
+ popd
31
+
32
+ dist=$PWD /dist
33
+ rev=$( git describe --tags)
34
+ mkdir -p $dist
35
+ pushd $INSTALLDIR /tools
36
+ zip -r $dist /ESP32FS-$rev .zip ESP32FS/
37
+ popd
You can’t perform that action at this time.
0 commit comments