forked from Gericom/FastVideoDSEncoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·31 lines (29 loc) · 917 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·31 lines (29 loc) · 917 Bytes
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
26
27
28
29
30
31
#!/bin/sh
BUILDDIR=$(pwd)/build
LIST2BAR=$(pwd)/build/list2bar
BIN2S=$(pwd)/build/bin2s
case $1 in
pkgtools)
gcc pkgtools/list2bar.c -o build/list2bar
gcc pkgtools/bin2s.c -o build/bin2s
;;
ffmpeg)
cd $BUILDDIR
wget https://github.com/m4gh3/ffmpeg_linux_builder/releases/download/release.2022.12.17/ffmpeg_libs.tar.bz2
tar xjf ffmpeg_libs.tar.bz2
;;
FastVideoDSEncoder)
cd FastVideoDSEncoder
dotnet publish -p:PublishSingleFile=true -r linux-x64 -c Release -p:PublishTrimmed=true
cd bin/Release/net6.0/linux-x64/
rm publish/FastVideoDSEncoder.pdb publish/Gericom.FastVideoDS.pdb
cp $BUILDDIR/lib/*.so.* publish/x64/
rm publish/x64/*.so.*.*
find publish | $LIST2BAR publish.bar
rm publish.bar.gz
gzip publish.bar
$BIN2S publish.bar.gz | as -o $BUILDDIR/publish.o
cd $BUILDDIR
g++ -static $BUILDDIR/publish.o ../pkgtools/packed_exec.cpp -l:libz.a -o FastVideoDSEncoder
;;
esac