From: Chocobozzz Date: Wed, 12 Feb 2020 13:09:24 +0000 (+0100) Subject: Keep our current build system for now X-Git-Tag: v2.2.0-rc.1~493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2779f29a66df9ad6fb162cfc9563e98fd137e223;p=oweals%2Fpeertube.git Keep our current build system for now --- diff --git a/scripts/build/client.sh b/scripts/build/client.sh index aa3f89c03..912401faf 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -76,11 +76,16 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then # TODO: remove when the project will use runtime translations pre_build_hook "$lang" - npm run ng build -- --prod --configuration="$lang" + npm run ng build -- --prod --configuration="$lang" --output-path "dist/build" - if [ ! "$lang" = "$key" ]; then - mv "dist/$key" "dist/$lang" - fi + # If --localize is not used + mv "dist/build/$key" "dist/$lang" + rmdir "dist/build" + + # If --localize is used + # if [ ! "$lang" = "$key" ]; then + # mv "dist/$key" "dist/$lang" + # fi # Do not duplicate assets rm -r "./dist/$lang/assets"