Build all stls into zip archives

This commit is contained in:
mmcwilliams 2020-08-19 13:11:30 -04:00
parent 059967f091
commit 46c78a2cb0
1 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,10 @@ do
for SIZE in "${SIZES[@]}"
do
:
echo "./stl/${SIZE}_${VERSION} -> ./releases/gnal_${SIZE}_${VERSION}.zip"
zip -r "./releases/gnal_${SIZE}_${VERSION}.zip" "./stl/${SIZE}_${VERSION}/*.stl"
echo "./stl/${SIZE}_${VERSION} -> ./releases/gnal_${SIZE}_${VERSION} archives"
# create zip archive and skip dotfiles
zip -x ".*" -r "./releases/gnal_${SIZE}_${VERSION}.zip" "./stl/${SIZE}_${VERSION}/*.stl"
# create tar.gz archive and skip dotfiles
tar --exclude=".*" -czvf "./releases/gnal_${SIZE}_${VERSION}.tar.gz" "./stl/${SIZE}_${VERSION}/"
done
done