mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Update make script for ESP8266FS tool
This commit is contained in:
@ -1,10 +1,30 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ALIBDIR="/Users/ficeto/Documents/Arduino"
|
|
||||||
mkdir -p bin && \
|
if [[ -z "$INSTALLDIR" ]]; then
|
||||||
javac -target 1.8 -cp "../../arduino-core.jar:../../pde.jar" -d bin src/ESP8266FS.java && \
|
INSTALLDIR="$HOME/Documents/Arduino"
|
||||||
cd bin && \
|
fi
|
||||||
mkdir -p $ALIBDIR/tools && \
|
echo "INSTALLDIR: $INSTALLDIR"
|
||||||
rm -rf $ALIBDIR/tools/ESP8266FS && \
|
|
||||||
mkdir -p $ALIBDIR/tools/ESP8266FS/tool && \
|
pde_path=`find ../../.. -name pde.jar`
|
||||||
zip -r $ALIBDIR/tools/ESP8266FS/tool/esp8266fs.jar * && \
|
core_path=`find ../../.. -name arduino-core.jar`
|
||||||
cd ..
|
if [[ -z "$core_path" || -z "$pde_path" ]]; then
|
||||||
|
echo "Some java libraries have not been built yet (did you run ant build?)"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir -p bin
|
||||||
|
javac -target 1.7 -cp "$pde_path:$core_path" \
|
||||||
|
-d bin src/ESP8266FS.java
|
||||||
|
|
||||||
|
pushd bin
|
||||||
|
mkdir -p $INSTALLDIR/tools
|
||||||
|
rm -rf $INSTALLDIR/tools/ESP8266FS
|
||||||
|
mkdir -p $INSTALLDIR/tools/ESP8266FS/tool
|
||||||
|
zip -r $INSTALLDIR/tools/ESP8266FS/tool/esp8266fs.jar *
|
||||||
|
popd
|
||||||
|
|
||||||
|
#pushd $INSTALLDIR/tools
|
||||||
|
#zip -r ESP8266FS-$(git describe --tags).zip ESP8266FS/
|
||||||
|
#popd
|
||||||
|
Reference in New Issue
Block a user