]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/client.sh
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / scripts / build / client.sh
index 5ecbff28d44a8ce0d7e07c32c7607b92797185e5..2bb3227648097add8e8a83531a2dfdd101b9d35f 100755 (executable)
@@ -8,6 +8,7 @@ defaultLanguage="en-US"
 # Supported languages
 languages=(
     ["ar"]="ar"
+    ["fa"]="fa-IR"
     ["en"]="en-US"
     ["vi"]="vi-VN"
     ["hu"]="hu-HU"
@@ -35,6 +36,8 @@ languages=(
     ["de"]="de-DE"
     ["it"]="it-IT"
     ["sq"]="sq"
+    ["nn"]="nn"
+    ["nb"]="nb-NO"
     ["kab"]="kab"
 )
 
@@ -46,7 +49,7 @@ rm -rf ./dist
 if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then
     additionalParams=""
     if [ ! -z ${1+x} ] && [ "$1" == "--source-map" ]; then
-        additionalParams="--sourceMap=true"
+        additionalParams="--source-map=true"
     fi
 
     node --max_old_space_size=8192 node_modules/.bin/ng build --configuration production --output-path "dist/build" $additionalParams
@@ -68,12 +71,14 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t
 else
     additionalParams=""
     if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
-        additionalParams="--namedChunks=true --outputHashing=none"
+        additionalParams="--named-chunks=true --output-hashing=none"
+
+        # For webpack
         export ANALYZE_BUNDLE=true
     fi
 
     node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \
-                        --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams
+                                                              --configuration production --stats-json $additionalParams
 fi
 
 cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"