scripts: dist handles UI

This commit is contained in:
Mitchell Hashimoto 2014-05-01 11:01:54 -07:00
parent 8d2b029074
commit 9c83a54871
1 changed files with 9 additions and 3 deletions

View File

@ -39,9 +39,15 @@ for FILENAME in $(find ./dist -mindepth 1 -maxdepth 1 -type f); do
CONSULNAME="consul${EXTENSION}"
pushd ./dist
cp ${FILENAME} ${CONSULNAME}
zip ./pkg/${VERSION}_${PLATFORM}.zip ${CONSULNAME}
rm ${CONSULNAME}
if [ "${FILENAME}" = "ui.zip" ]; then
cp ${FILENAME} ./pkg/${VERSION}_web_ui.zip
else
cp ${FILENAME} ${CONSULNAME}
zip ./pkg/${VERSION}_${PLATFORM}.zip ${CONSULNAME}
rm ${CONSULNAME}
fi
popd
done