fix: keep dist after legacy has built

This commit is contained in:
Jixun 2022-11-26 20:11:05 +00:00
parent c5adc9dc05
commit 9b3dfc0ed6
1 changed files with 10 additions and 4 deletions

View File

@ -20,4 +20,10 @@ esac
mv dist "${DIST_NAME}"
zip -rJ9 "${DIST_NAME}.zip" "${DIST_NAME}"
if [ "$1" == "legacy" ]; then
# For upcoming extension build
mv "${DIST_NAME}" dist
else
rm -rf "${DIST_NAME}"
fi