diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-12 11:34:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-12 14:09:55 +0100 |
commit | 8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f (patch) | |
tree | 88fbda0d3c1b5f34569a877522cfe8d50705388a /scripts/build | |
parent | 3f87a46f1dd01485e4a28422f74c3a1b0f56729f (diff) | |
download | PeerTube-8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f.tar.gz PeerTube-8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f.tar.zst PeerTube-8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f.zip |
Only use basehref
Will allow us to use the localize option
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/client.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 99394838a..aa3f89c03 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -76,10 +76,11 @@ 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 -- --output-path "dist/build" --deploy-url "/client/$lang/" --prod --configuration="$lang" | 79 | npm run ng build -- --prod --configuration="$lang" |
80 | 80 | ||
81 | mv "dist/build/$key" "dist/$lang" | 81 | if [ ! "$lang" = "$key" ]; then |
82 | rmdir "dist/build" | 82 | mv "dist/$key" "dist/$lang" |
83 | fi | ||
83 | 84 | ||
84 | # Do not duplicate assets | 85 | # Do not duplicate assets |
85 | rm -r "./dist/$lang/assets" | 86 | rm -r "./dist/$lang/assets" |