1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Only use basehref

Will allow us to use the localize option
This commit is contained in:
Chocobozzz 2020-02-12 11:34:34 +01:00
parent 3f87a46f1d
commit 8cc56c7fdd
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 37 additions and 27 deletions

View file

@ -76,10 +76,11 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
# TODO: remove when the project will use runtime translations
pre_build_hook "$lang"
npm run ng build -- --output-path "dist/build" --deploy-url "/client/$lang/" --prod --configuration="$lang"
npm run ng build -- --prod --configuration="$lang"
mv "dist/build/$key" "dist/$lang"
rmdir "dist/build"
if [ ! "$lang" = "$key" ]; then
mv "dist/$key" "dist/$lang"
fi
# Do not duplicate assets
rm -r "./dist/$lang/assets"