diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/client.sh | 7 | ||||
-rwxr-xr-x | scripts/nightly.sh | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 0e7925be5..fd072b18c 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -43,7 +43,12 @@ rm -rf ./dist ./compiled | |||
43 | 43 | ||
44 | # Don't build other languages if --light arg is provided | 44 | # Don't build other languages if --light arg is provided |
45 | if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then | 45 | if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then |
46 | npm run ng build -- --prod --output-path "dist/build" | 46 | additionalParams="" |
47 | if [ ! -z ${1+x} ] && [ "$1" == "--source-map" ]; then | ||
48 | additionalParams="--sourceMap=true" | ||
49 | fi | ||
50 | |||
51 | npm run ng build -- --prod --output-path "dist/build" $additionalParams | ||
47 | 52 | ||
48 | for key in "${!languages[@]}"; do | 53 | for key in "${!languages[@]}"; do |
49 | lang=${languages[$key]} | 54 | lang=${languages[$key]} |
diff --git a/scripts/nightly.sh b/scripts/nightly.sh index c4c6f87b5..5ad603929 100755 --- a/scripts/nightly.sh +++ b/scripts/nightly.sh | |||
@@ -18,7 +18,7 @@ today=$(date '+%F') | |||
18 | directory_name="peertube-nightly-$today" | 18 | directory_name="peertube-nightly-$today" |
19 | tar_name="peertube-nightly-$today.tar.xz" | 19 | tar_name="peertube-nightly-$today.tar.xz" |
20 | 20 | ||
21 | npm run build | 21 | npm run build -- --source-map |
22 | 22 | ||
23 | nightly_version="nightly-$today" | 23 | nightly_version="nightly-$today" |
24 | sed -i 's/"version": "\([^"]\+\)"/"version": "\1-'"$nightly_version"'"/' ./package.json | 24 | sed -i 's/"version": "\([^"]\+\)"/"version": "\1-'"$nightly_version"'"/' ./package.json |