Skip to content

Commit ae2db8f

Browse files
committed
fix packager script
1 parent 52a7897 commit ae2db8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deploy.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ package_index=`cat package_index.template | sed s/%%VERSION%%/${VERSION}/`
1515

1616
for folder in "${target_folders[@]}"
1717
do
18-
rm arduino101load*
18+
rm -rf arduino101load*
19+
rm -rf bin
20+
mkdir bin
1921
IFS=_ read -a fields <<< $folder
2022
GOOS=${fields[0]} GOARCH=${fields[1]} go build
2123
FILENAME=arduino101load-${VERSION}-${folder}.tar.bz2
22-
tar cjvf ${FILENAME} arduino101load* firmwares/
24+
cp -r arduino101load* firmwares/ bin
25+
tar cjvf ${FILENAME} bin/
2326
T_OS=`echo ${folder} | awk '{print toupper($0)}'`
2427
SHASUM=`sha256sum ${FILENAME} | cut -f1 -d" "`
2528
SIZE=`stat --printf="%s" ${FILENAME}`

0 commit comments

Comments
 (0)