2019-07-29 11:59:29 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
shutdown() {
|
|
|
|
# Get our process group id
|
|
|
|
# shellcheck disable=SC2009
|
|
|
|
PGID=$(ps -o pgid= $$ | grep -o "[0-9]*")
|
|
|
|
|
|
|
|
# Kill it in a new new process group
|
|
|
|
setsid kill -- -"$PGID"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
|
|
|
trap "shutdown" SIGINT SIGTERM
|
|
|
|
|
|
|
|
today=$(date '+%F')
|
|
|
|
directory_name="peertube-nightly-$today"
|
|
|
|
tar_name="peertube-nightly-$today.tar.xz"
|
Global client redesign
* Split "my library" into "video space (channels, videos...)" and "my library (playlists, history...)"
* Split "admin" into "overview (users, videos...)", "moderation (abuses, blocks, registrations...)" and "settings (configuration, runners...)"
* Reorganize the header and the left menu: account settings/notifications are now in the header
* Add instance information context in the left menu
* Merge dedicated videos pages for "recently added", "trending", "local videos" into a "browse videos" page that includes quick filters
* Clean up entire CSS
* Clean CSS variables so it's easier to theme PeerTube (some new variables fallback to old variables to limit currnet themes breakages)
* Replace the current light theme into a new one (beige)
* Add a dark (brown) theme (included in PeerTube core)
* Fix accessibility issues with old light theme colors (white on orange button for example)
* Redesign the left menu, the horizontal menu, form controls and buttons, "Discover videos" page and common video filters panel
* Replace/remove/add some global icon
2024-11-05 10:03:40 +01:00
|
|
|
peertube_directory=$(basename $(pwd))
|
2019-07-29 11:59:29 +02:00
|
|
|
|
2021-02-02 15:33:58 +01:00
|
|
|
npm run build -- --source-map
|
2019-07-29 11:59:29 +02:00
|
|
|
|
2023-07-31 14:34:36 +02:00
|
|
|
# Clean up declaration files
|
|
|
|
find dist/ packages/core-utils/dist/ \
|
|
|
|
packages/ffmpeg/dist/ \
|
|
|
|
packages/node-utils/dist/ \
|
|
|
|
packages/models/dist/ \
|
|
|
|
\( -name '*.d.ts' -o -name '*.d.ts.map' \) -type f -delete
|
|
|
|
|
2019-10-23 11:46:42 +02:00
|
|
|
nightly_version="nightly-$today"
|
|
|
|
sed -i 's/"version": "\([^"]\+\)"/"version": "\1-'"$nightly_version"'"/' ./package.json
|
|
|
|
|
2019-07-29 11:59:29 +02:00
|
|
|
# Creating the archives
|
|
|
|
(
|
|
|
|
# local variables
|
|
|
|
directories_to_archive=("$directory_name/CREDITS.md" "$directory_name/FAQ.md" \
|
|
|
|
"$directory_name/LICENSE" "$directory_name/README.md" \
|
2023-07-31 14:34:36 +02:00
|
|
|
"$directory_name/packages/core-utils/dist/" "$directory_name/packages/core-utils/package.json" \
|
|
|
|
"$directory_name/packages/ffmpeg/dist/" "$directory_name/packages/ffmpeg/package.json" \
|
|
|
|
"$directory_name/packages/node-utils/dist/" "$directory_name/packages/node-utils/package.json" \
|
|
|
|
"$directory_name/packages/models/dist/" "$directory_name/packages/models/package.json" \
|
2024-07-01 10:12:48 +02:00
|
|
|
"$directory_name/packages/transcription/dist/" "$directory_name/packages/transcription/package.json" \
|
2019-07-29 11:59:29 +02:00
|
|
|
"$directory_name/client/dist/" "$directory_name/client/yarn.lock" \
|
|
|
|
"$directory_name/client/package.json" "$directory_name/config" \
|
|
|
|
"$directory_name/dist" "$directory_name/package.json" \
|
2024-08-06 12:02:50 +02:00
|
|
|
"$directory_name/scripts/upgrade.sh" "$directory_name/support/doc" "$directory_name/support/freebsd" \
|
|
|
|
"$directory_name/support/init.d" "$directory_name/support/nginx" "$directory_name/support/openapi" \
|
2024-08-07 08:15:48 +02:00
|
|
|
"$directory_name/support/sysctl.d" "$directory_name/support/systemd" \
|
2022-01-03 17:13:11 +01:00
|
|
|
"$directory_name/yarn.lock")
|
2019-07-29 11:59:29 +02:00
|
|
|
|
|
|
|
# temporary setup
|
|
|
|
cd ..
|
Global client redesign
* Split "my library" into "video space (channels, videos...)" and "my library (playlists, history...)"
* Split "admin" into "overview (users, videos...)", "moderation (abuses, blocks, registrations...)" and "settings (configuration, runners...)"
* Reorganize the header and the left menu: account settings/notifications are now in the header
* Add instance information context in the left menu
* Merge dedicated videos pages for "recently added", "trending", "local videos" into a "browse videos" page that includes quick filters
* Clean up entire CSS
* Clean CSS variables so it's easier to theme PeerTube (some new variables fallback to old variables to limit currnet themes breakages)
* Replace the current light theme into a new one (beige)
* Add a dark (brown) theme (included in PeerTube core)
* Fix accessibility issues with old light theme colors (white on orange button for example)
* Redesign the left menu, the horizontal menu, form controls and buttons, "Discover videos" page and common video filters panel
* Replace/remove/add some global icon
2024-11-05 10:03:40 +01:00
|
|
|
ln -s "$peertube_directory" "$directory_name"
|
2019-07-29 11:59:29 +02:00
|
|
|
|
Global client redesign
* Split "my library" into "video space (channels, videos...)" and "my library (playlists, history...)"
* Split "admin" into "overview (users, videos...)", "moderation (abuses, blocks, registrations...)" and "settings (configuration, runners...)"
* Reorganize the header and the left menu: account settings/notifications are now in the header
* Add instance information context in the left menu
* Merge dedicated videos pages for "recently added", "trending", "local videos" into a "browse videos" page that includes quick filters
* Clean up entire CSS
* Clean CSS variables so it's easier to theme PeerTube (some new variables fallback to old variables to limit currnet themes breakages)
* Replace the current light theme into a new one (beige)
* Add a dark (brown) theme (included in PeerTube core)
* Fix accessibility issues with old light theme colors (white on orange button for example)
* Redesign the left menu, the horizontal menu, form controls and buttons, "Discover videos" page and common video filters panel
* Replace/remove/add some global icon
2024-11-05 10:03:40 +01:00
|
|
|
XZ_OPT=-e9 tar cfJ "$peertube_directory/$tar_name" "${directories_to_archive[@]}"
|
2019-07-29 11:59:29 +02:00
|
|
|
|
|
|
|
# temporary setup destruction
|
|
|
|
rm "$directory_name"
|
|
|
|
)
|
2019-10-23 11:46:42 +02:00
|
|
|
|
|
|
|
git checkout -- ./package.json
|