mirror of
https://github.com/jellyfin/jellyfin-ffmpeg.git
synced 2026-09-02 21:03:08 +03:00
Rename portable build scripts
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
Executable
+24
@@ -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}"
|
||||
Executable
+24
@@ -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}"
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user