diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/nightly.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/nightly.sh b/scripts/nightly.sh index bde5d57b9..c4c6f87b5 100755 --- a/scripts/nightly.sh +++ b/scripts/nightly.sh | |||
@@ -20,6 +20,9 @@ tar_name="peertube-nightly-$today.tar.xz" | |||
20 | 20 | ||
21 | npm run build | 21 | npm run build |
22 | 22 | ||
23 | nightly_version="nightly-$today" | ||
24 | sed -i 's/"version": "\([^"]\+\)"/"version": "\1-'"$nightly_version"'"/' ./package.json | ||
25 | |||
23 | # Creating the archives | 26 | # Creating the archives |
24 | ( | 27 | ( |
25 | # local variables | 28 | # local variables |
@@ -40,3 +43,5 @@ npm run build | |||
40 | # temporary setup destruction | 43 | # temporary setup destruction |
41 | rm "$directory_name" | 44 | rm "$directory_name" |
42 | ) | 45 | ) |
46 | |||
47 | git checkout -- ./package.json | ||