1
0
forked from um/web

fix: keep dist after legacy has built

This commit is contained in:
鲁树人 2022-11-26 20:11:05 +00:00
parent 9c03746db7
commit fcbd9fc1f0

View File

@ -13,11 +13,17 @@ case "$1" in
"extension") npm run make-extension ;;
*)
echo "Unknown command: $1"
exit 1
;;
echo "Unknown command: $1"
exit 1
;;
esac
mv dist "${DIST_NAME}"
zip -rJ9 "${DIST_NAME}.zip" "${DIST_NAME}"
rm -rf "${DIST_NAME}"
if [ "$1" == "legacy" ]; then
# For upcoming extension build
mv "${DIST_NAME}" dist
else
rm -rf "${DIST_NAME}"
fi