Skip to content

Commit c92ff81

Browse files
committed
Updated for v4.0
1 parent 783add8 commit c92ff81

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

scripts/build-arduino-package.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
#!/bin/bash
22

33
ZIP="C:\Program Files\7-Zip\7z.exe"
4-
54
TAG=$(git describe)
65
OUTPUT="ArduinoJson-$TAG.zip"
76

8-
cd ..
9-
cd ..
10-
11-
INPUT=$(find ArduinoJson -regex ".*\.\(cpp\|h\|md\|txt\|ino\)$" -not -regex ".*Tests/.*")
7+
cd ../..
128

9+
# remove existing file
1310
rm -f $OUTPUT
14-
"$ZIP" a $OUTPUT $INPUT
11+
12+
# create zip
13+
"$ZIP" a $OUTPUT \
14+
ArduinoJson/CHANGELOG.md \
15+
ArduinoJson/doc \
16+
ArduinoJson/examples \
17+
ArduinoJson/include \
18+
ArduinoJson/keywords.txt \
19+
ArduinoJson/library.properties \
20+
ArduinoJson/LICENSE.md \
21+
ArduinoJson/README.md \
22+
ArduinoJson/src

0 commit comments

Comments
 (0)