-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
724 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
ROOT_DIR=$(dirname $(readlink -f $0)) | ||
|
||
cd "$ROOT_DIR/linux" | ||
|
||
bash build.sh | ||
|
||
|
||
cd "$ROOT_DIR/win" | ||
|
||
bash build.sh staticff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
docker rmi capturer-builder-linux -f | ||
docker build --no-cache -t capturer-builder-linux . | ||
docker build -t capturer-builder-linux . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
docker rmi capturer-builder-windows -f | ||
docker build --no-cache -t capturer-builder-windows . | ||
docker build -t capturer-builder-windows . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,75 @@ | ||
#!/bin/bash | ||
|
||
|
||
dest_dir=bin_win | ||
|
||
ffmpeg_date=`curl -vs "https://ffmpeg.zeranoe.com/builds/win64/shared/" 2>&1 | grep -E 'ffmpeg-[0-9]{8}' | grep -oE '[0-9]{8}' | sort -r | head -1` | ||
ffmpeg_version=`curl -vs "https://ffmpeg.zeranoe.com/builds/win64/shared/" 2>&1 | grep $ffmpeg_date | grep -Po '(?<=(ffmpeg-)).*(?=-win64-shared.zip)' | cut -c -16` | ||
# | ||
|
||
staticff=0 | ||
|
||
app_last_tag=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
app_version=$app_last_tag.`git rev-list $app_last_tag.. --count`-`git log -1 --pretty=format:%h` | ||
if [[ "$1" == "staticff" ]] ; then | ||
staticff=1 | ||
fi | ||
|
||
|
||
qt_version=`qmake --version | awk '{if ($1=="Using") print $4;}'` | ||
cd /temp | ||
|
||
|
||
cd /temp | ||
cd externals/3rdparty | ||
bash http_server_update.sh || { echo 'http_server_update err'; exit 1; } | ||
bash curses_update.sh || { echo 'curses_update err'; exit 1; } | ||
|
||
cd ffmpeg | ||
bash build_win.sh $1 || { echo 'ffmpeg build err'; exit 1; } | ||
|
||
mv externals/3rdparty/ffmpeg externals/3rdparty/ffmpeg_orig | ||
mkdir externals/3rdparty/ffmpeg | ||
cp externals/3rdparty/ffmpeg_orig/ffmpeg.pri externals/3rdparty/ffmpeg/ffmpeg.pri | ||
|
||
curl -s "https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-$ffmpeg_version-win64-shared.zip" --output ffmpeg_bin.zip | ||
curl -s "https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-$ffmpeg_version-win64-dev.zip" --output ffmpeg_dev.zip | ||
cd win/tmp/ffmpeg | ||
ffmpeg_version=`git log -1 --format=%cd-%h --date=format:'%Y%m%d'` | ||
|
||
|
||
7z x ffmpeg_bin.zip | ||
7z x ffmpeg_dev.zip | ||
rm -rfd /temp/$dest_dir | ||
|
||
|
||
mv -f ffmpeg-$ffmpeg_version-win64-dev/* externals/3rdparty/ffmpeg | ||
cd /temp/capturer | ||
|
||
app_last_tag=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
app_version=$app_last_tag.`git rev-list $app_last_tag.. --count`-`git log -1 --pretty=format:%h` | ||
|
||
cd externals/3rdparty | ||
bash http_server_update.sh | ||
bash curses_update.sh | ||
qt_version=`qmake --version | awk '{if ($1=="Using") print $4;}'` | ||
|
||
rm -rfd /temp/$dest_dir | ||
|
||
cd /temp/capturer | ||
if [ $staticff -eq 1 ]; then | ||
qmake "DEFINES+=STATIC_WIN_FF" "DESTDIR=../$dest_dir" capturer.pro || exit 1 | ||
|
||
else | ||
qmake "DESTDIR=../$dest_dir" capturer.pro || exit 1 | ||
fi | ||
|
||
qmake "DESTDIR=../$dest_dir" capturer.pro | ||
make clean | ||
make -j`nproc` | ||
make -j`nproc` || exit 1 | ||
|
||
|
||
cd /temp | ||
|
||
|
||
rm -rfd externals/3rdparty/ffmpeg | ||
mv externals/3rdparty/ffmpeg_orig externals/3rdparty/ffmpeg | ||
mv -f ffmpeg-$ffmpeg_version-win64-shared/bin/*.dll $dest_dir | ||
rm ffmpeg_bin.zip | ||
rm ffmpeg_dev.zip | ||
rm -rfd ffmpeg-$ffmpeg_version-win64-shared | ||
rm -rfd ffmpeg-$ffmpeg_version-win64-dev | ||
if [ $staticff -eq 0 ]; then | ||
cp -f externals/3rdparty/ffmpeg/win/bin/*.dll $dest_dir | ||
fi | ||
|
||
echo -e 'start capturer --setup\r\n\c' > $dest_dir/capturer.setup.cmd | ||
echo -e 'start capturer --portable-mode\r\n\c' > $dest_dir/capturer.portable.cmd | ||
echo -e 'start capturer --portable-mode --setup\r\n\c' > $dest_dir/capturer.portable.setup.cmd | ||
echo -e 'start capturer --portable-mode --headless\r\n\c' > $dest_dir/capturer.portable.headless.cmd | ||
echo -e 'start capturer --portable-mode --headless-curse\r\n\c' > $dest_dir/capturer.portable.headless-curse.cmd | ||
|
||
cp license $dest_dir/license | ||
|
||
|
||
cd $dest_dir | ||
|
||
|
||
arcfilename="../builder/capturer-$app_version""_x86_64-win_qt-""$qt_version""_ffmpeg-$ffmpeg_version" | ||
|
||
if [ -e $arcfilename.7z ]; then | ||
arcfilename=$arcfilename.`date +%Y-%m-%d_%H-%M-%S` | ||
fi | ||
|
||
7z a -mx9 $arcfilename.7z * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.