Skip to content

Commit 9bf8bde

Browse files
committed
Arduino IDE package build script
1 parent f9da0bd commit 9bf8bde

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@
3535
#Vim files
3636
*.*~
3737
*.swp
38+
39+
#Releases
40+
YSoft-samd-*.tar.gz
41+

build_package.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
VERSION="0.0.1"
4+
RELEASE="YSoft-samd-$VERSION.tar.gz"
5+
RELEASE_DIR="../yi-play-arduin-release/"
6+
7+
REMOVE_FILES="build_package.sh package_iotaysoftcom_index.json"
8+
9+
echo "Building package $VERSION"
10+
11+
rm -rf ${RELEASE_DIR}/*
12+
mkdir -p ${RELEASE_DIR}
13+
cp -r * ${RELEASE_DIR}
14+
15+
for f in $REMOVE_FILES
16+
do
17+
rm -rf ${RELEASE_DIR}/$f
18+
done
19+
20+
tar -czf $RELEASE -C $RELEASE_DIR .
21+
22+
echo "Done $RELEASE"
23+
shasum -a 256 $RELEASE

0 commit comments

Comments
 (0)