diff options
-rwxr-xr-x | scripts/build/client.sh | 13 |
1 files changed, 9 insertions, 4 deletions
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 | |||
76 | # TODO: remove when the project will use runtime translations | 76 | # TODO: remove when the project will use runtime translations |
77 | pre_build_hook "$lang" | 77 | pre_build_hook "$lang" |
78 | 78 | ||
79 | npm run ng build -- --prod --configuration="$lang" | 79 | npm run ng build -- --prod --configuration="$lang" --output-path "dist/build" |
80 | 80 | ||
81 | if [ ! "$lang" = "$key" ]; then | 81 | # If --localize is not used |
82 | mv "dist/$key" "dist/$lang" | 82 | mv "dist/build/$key" "dist/$lang" |
83 | fi | 83 | rmdir "dist/build" |
84 | |||
85 | # If --localize is used | ||
86 | # if [ ! "$lang" = "$key" ]; then | ||
87 | # mv "dist/$key" "dist/$lang" | ||
88 | # fi | ||
84 | 89 | ||
85 | # Do not duplicate assets | 90 | # Do not duplicate assets |
86 | rm -r "./dist/$lang/assets" | 91 | rm -r "./dist/$lang/assets" |