Skip to content

Commit c45492b

Browse files
committed
Added the linux stuff - absolutely untested!
If someone has a time get trough, please report if it builds as it should be.
1 parent de505d9 commit c45492b

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
*.jar

.travis.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: false
2+
3+
language: java
4+
5+
os:
6+
- linux
7+
8+
addons:
9+
apt:
10+
packages:
11+
- ant
12+
13+
jdk:
14+
- oraclejdk8
15+
16+
script:
17+
- export SRC=$PWD
18+
- cd $HOME
19+
- export TAG=1.6.12
20+
- wget https://github.com/arduino/Arduino/archive/$TAG.zip
21+
- unzip $TAG.zip
22+
- rm $TAG.zip
23+
- export arduino_dir=Arduino-$TAG
24+
- pushd $arduino_dir/build
25+
- echo "" | ant build
26+
- pushd shared/tools
27+
- mkdir -p SP32LittleFS
28+
- rsync -a $SRC/ SP32LittleFS/
29+
- pushd SP32LittleFS
30+
- ./make.sh
31+
- popd && popd && popd

make.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 ../../../ -name pde.jar`
9+
core_path=`find ../../../ -name arduino-core.jar`
10+
lib_path=`find ../../../ -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 -target 1.8 -cp "$pde_path:$core_path:$lib_path" \
23+
-d bin src/ESP32LittleFS.java
24+
25+
pushd bin
26+
mkdir -p $INSTALLDIR/tools
27+
rm -rf $INSTALLDIR/tools/ESP32LittleFS
28+
mkdir -p $INSTALLDIR/tools/ESP32LittleFS/tool
29+
zip -r $INSTALLDIR/tools/ESP32LittleFS/tool/esp32littlefs.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/ESP32LittleFS-$rev.zip ESP32LittleFS/
37+
popd

0 commit comments

Comments
 (0)