Rename portable build scripts

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka
2022-11-11 18:20:50 +08:00
parent 29d6363126
commit 05f970b34d
4 changed files with 50 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -o xtrace
set -o errexit
# Check for dependencies
for dep in bash docker; do
command -v ${dep} &>/dev/null || { echo "The command '${dep}' is required."; exit 1; }
done
# Build the jellyfin-ffmpeg portable version
[[ $(docker image ls 'ghcr.io/jellyfin/jellyfin-ffmpeg/linux64-gpl:latest' | wc -l) -eq 1 ]] && \
./builder/makeimage.sh linux64 gpl
./builder/build.sh linux64 gpl
# If no 1st parameter was specified, move pkg to parent directory
if [[ -z ${1} ]]; then
path="../bin"
else
path="${1}"
fi
mkdir ${path} &>/dev/null || true
mv builder/artifacts/jellyfin-ffmpeg*portable_linux64-gpl*.{tar.xz,sha256sum} "${path}"
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -o xtrace
set -o errexit
# Check for dependencies
for dep in bash docker; do
command -v ${dep} &>/dev/null || { echo "The command '${dep}' is required."; exit 1; }
done
# Build the jellyfin-ffmpeg portable version
[[ $(docker image ls 'ghcr.io/jellyfin/jellyfin-ffmpeg/linuxarm64-gpl:latest' | wc -l) -eq 1 ]] && \
./builder/makeimage.sh linuxarm64 gpl
./builder/build.sh linuxarm64 gpl
# If no 1st parameter was specified, move pkg to parent directory
if [[ -z ${1} ]]; then
path="../bin"
else
path="${1}"
fi
mkdir ${path} &>/dev/null || true
mv builder/artifacts/jellyfin-ffmpeg*portable_linuxarm64-gpl*.{tar.xz,sha256sum} "${path}"
View File
+2 -2
View File
@@ -621,8 +621,8 @@ popd
# Zip and copy artifacts
mkdir -p ${ARTIFACT_DIR}/zip
pushd ${FF_PREFIX}/bin
ffpackage="jellyfin-ffmpeg_${ffversion}-windows_win64"
zip -r ${ARTIFACT_DIR}/zip/${ffpackage}.zip ./*.{exe,dll}
ffpackage="jellyfin-ffmpeg_${ffversion}-portable_win64"
zip -9 -r ${ARTIFACT_DIR}/zip/${ffpackage}.zip ./*.{exe,dll}
pushd ${ARTIFACT_DIR}/zip
sha256sum ./${ffpackage}.zip > ./${ffpackage}.zip.sha256sum
chown -Rc $(stat -c %u:%g ${ARTIFACT_DIR}) ${ARTIFACT_DIR}