diff --git a/scripts/prepare_deploy.sh b/scripts/prepare_deploy.sh index 2788160..520dab0 100755 --- a/scripts/prepare_deploy.sh +++ b/scripts/prepare_deploy.sh @@ -4,8 +4,6 @@ echo "renaming bin files with the board name" rename -v 's:/:-:g' .pio/build/*/*.bin mkdir toDeploy rename 's/.pio-build-//' .*.bin -# don't publish binaries for *-all and *-test env -rm *-all.bin *-test.bin ( cd .pio/libdeps echo "replace space by _ in folder names" @@ -15,12 +13,11 @@ rm *-all.bin *-test.bin do zip -r "${i%/}-libraries.zip" "$i" done - # don't publish libraries for *-test env - rm *-test.zip ls -lA mv *.zip ../../toDeploy ) - +# remove binaries for *-all*, *-test* env and only zip containing *-test* +rm -f *-all*.bin *-test*.bin *-test*.zip echo "zipping code and licence" zip -r OpenMQTTGateway_sources.zip main LICENSE.txt mv *.zip toDeploy