mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
20 lines
673 B
Bash
Executable file
20 lines
673 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source common.build.sh
|
|
|
|
VERSION=`get_version ..`
|
|
|
|
COLLECT_DIR="./collect-dist"
|
|
|
|
mkdir -p ./collect-dist
|
|
|
|
DIRS=`find . -type d -name "pkg-dist"`
|
|
|
|
while read directory
|
|
do
|
|
echo "Collecting everything from '$directory'.."
|
|
PLATFORM=$(basename "$(dirname "$directory")")
|
|
# Copy all artifacts with extensions tar.gz, deb, exe, zip, rpm and add the platform name to resolve any duplicates.
|
|
find $directory \( -name "jellyfin*.tar.gz" -o -name "jellyfin*.deb" -o -name "jellyfin*.rpm" -o -name "jellyfin*.zip" -o -name "jellyfin*.exe" \) -exec sh -c 'cp "$1" "'${COLLECT_DIR}'/jellyfin_'${PLATFORM}'_${1#*jellyfin}"' _ {} \;
|
|
|
|
done <<< "${DIRS}"
|