forked from markus-perl/ffmpeg-build-script
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcopyfiles.sh
25 lines (20 loc) · 797 Bytes
/
copyfiles.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
echo " Archive File and Copying Dynamics Libs"
#copying artificats
## ffmpeg archive
mkdir -p /app/ffmpeg/bin
mkdir -p /app/ffmpeg/lib
cp /app/workspace/bin/ffmpeg /app/ffmpeg/bin
cp /app/workspace/bin/ffprobe /app/ffmpeg/bin
cp /app/workspace/bin/ffplay /app/ffmpeg/bin
bash /app/ldd.sh /app/workspace/bin/ffmpeg /app/ffmpeg/lib/
OUTPUT_FNAME="ffmpeg-${FFMPEG_VERSION}-ubuntu${VER}.tar.xz"
XZ_OPT="-9e -T0" tar cJf "/app/artifacts/${OUTPUT_FNAME}" -C /app/ffmpeg .
##nvencc archive
mkdir -p /app/nvencc/bin
mkdir -p /app/nvencc/lib
cp /app/workspace/bin/nvencc /app/nvencc/bin
bash /app/ldd.sh /app/workspace/bin/nvencc /app/nvencc/lib
OUTPUT_FNAME="nvencc-${NVENC_VERSION}-ubuntu${VER}.tar.xz"
XZ_OPT="-9e -T0" tar cJf "/app/artifacts/${OUTPUT_FNAME}" -C /app/nvencc .