Use gtk3 dialog on ubuntu 1404 (#24)
* Use gtk file dialog on Ubuntu 14.04 in AppImage * Fix caching in appimage actions * Use test api id in test appimage action * Omit Qt flags that set to default values in appimage action * Synchronize appimage ffmpeg arguments with generic linux one * Synchronize move artifact step in appimage release action with test appimage action * Install as more libraries as possible into /usr/local in AppImage actions * Use configure.sh in appimage actions * Add fcitx plugin to appimage * Add AV1 support to appimage * Add missing sudo in appimage actions * Fix step names in appimage actions * Ignore all .md files in appimage action * Update Qt to 5.12.8 in appimage action
This commit is contained in:
parent
d56347064c
commit
0a9b93a98c
4 changed files with 906 additions and 505 deletions
593
.github/workflows/appimage-release.yml
vendored
593
.github/workflows/appimage-release.yml
vendored
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
gcc --version > CACHE_KEY.txt
|
gcc --version > CACHE_KEY.txt
|
||||||
echo $MANUAL_CACHING >> CACHE_KEY.txt
|
echo $MANUAL_CACHING >> CACHE_KEY.txt
|
||||||
if [ "$AUTO_CACHING" == "1" ]; then
|
if [ "$AUTO_CACHING" == "1" ]; then
|
||||||
thisFile=$REPO_NAME/.github/workflows/linux.yml
|
thisFile=$REPO_NAME/.github/workflows/appimage-release.yml
|
||||||
echo `md5sum $thisFile | cut -c -32` >> CACHE_KEY.txt
|
echo `md5sum $thisFile | cut -c -32` >> CACHE_KEY.txt
|
||||||
fi
|
fi
|
||||||
md5cache=$(md5sum CACHE_KEY.txt | cut -c -32)
|
md5cache=$(md5sum CACHE_KEY.txt | cut -c -32)
|
||||||
|
|
@ -90,228 +90,6 @@ jobs:
|
||||||
cd Libraries
|
cd Libraries
|
||||||
echo ::set-env name=LibrariesPath::`pwd`
|
echo ::set-env name=LibrariesPath::`pwd`
|
||||||
|
|
||||||
- name: CMake.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
file=cmake-$CMAKE_VER-Linux-x86_64.sh
|
|
||||||
wget $GIT/Kitware/CMake/releases/download/v$CMAKE_VER/$file
|
|
||||||
sudo mkdir /opt/cmake
|
|
||||||
sudo sh $file --prefix=/opt/cmake --skip-license
|
|
||||||
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
|
|
||||||
rm $file
|
|
||||||
|
|
||||||
cmake --version
|
|
||||||
|
|
||||||
# TODO: AV1 support
|
|
||||||
# - name: Meson.
|
|
||||||
# run: |
|
|
||||||
# sudo python3 -m pip install meson==0.44.1
|
|
||||||
# meson --version
|
|
||||||
|
|
||||||
# TODO: AV1 support
|
|
||||||
# - name: Ninja.
|
|
||||||
# run: |
|
|
||||||
# cd $LibrariesPath
|
|
||||||
|
|
||||||
# wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
|
||||||
# unzip ninja-linux.zip
|
|
||||||
# chmod +x ninja
|
|
||||||
# mv ninja /usr/local/bin
|
|
||||||
|
|
||||||
# ninja --version
|
|
||||||
|
|
||||||
- name: NASM.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b nasm-2.14.02 --depth=1 https://repo.or.cz/nasm.git
|
|
||||||
cd nasm
|
|
||||||
./autogen.sh
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make -j$(nproc)
|
|
||||||
sudo install nasm /usr/bin/nasm
|
|
||||||
sudo install ndisasm /usr/bin/ndisasm
|
|
||||||
cd ..
|
|
||||||
rm -rf nasm
|
|
||||||
|
|
||||||
- name: Range-v3.
|
|
||||||
run: |
|
|
||||||
echo "Find necessary branch from doc."
|
|
||||||
cloneRange=$(grep -A 1 "range-v3" $REPO_NAME/$DOC_PATH | sed -n 1p)
|
|
||||||
cd $LibrariesPath
|
|
||||||
echo $cloneRange
|
|
||||||
eval $cloneRange
|
|
||||||
cd range-v3
|
|
||||||
|
|
||||||
cmake . \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DRANGE_V3_TESTS=OFF \
|
|
||||||
-DRANGE_V3_EXAMPLES=OFF \
|
|
||||||
-DRANGE_V3_DOCS=OFF
|
|
||||||
|
|
||||||
cmake --build .
|
|
||||||
cmake --install .
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
rm -rf range-v3
|
|
||||||
|
|
||||||
- name: MiniZip.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b v1.2.11 --depth=1 $GIT/madler/zlib.git
|
|
||||||
cd zlib/contrib/minizip
|
|
||||||
autoreconf -i
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
cd ../../..
|
|
||||||
rm -rf zlib
|
|
||||||
|
|
||||||
- name: LZ4.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b v1.9.2 --depth=1 $GIT/lz4/lz4.git
|
|
||||||
cd lz4
|
|
||||||
make -j$(nproc)
|
|
||||||
PREFIX=/usr sudo make install
|
|
||||||
cd ..
|
|
||||||
rm -rf lz4
|
|
||||||
|
|
||||||
- name: xxHash.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b v0.7.2 --depth=1 $GIT/Cyan4973/xxHash.git
|
|
||||||
cd xxHash
|
|
||||||
make -j$(nproc)
|
|
||||||
PREFIX=/usr sudo make install
|
|
||||||
cd ..
|
|
||||||
rm -rf xxHash
|
|
||||||
|
|
||||||
# TODO: AV1 support
|
|
||||||
# - name: dav1d.
|
|
||||||
# run: |
|
|
||||||
# cd $LibrariesPath
|
|
||||||
|
|
||||||
# git clone -b 0.6.0 --depth=1 $GIT/videolan/dav1d.git
|
|
||||||
# cd dav1d
|
|
||||||
# mkdir build && cd build
|
|
||||||
# meson --prefix=/usr ..
|
|
||||||
# ninja
|
|
||||||
# ninja install
|
|
||||||
# cd ../..
|
|
||||||
# rm -rf dav1d
|
|
||||||
|
|
||||||
- name: FFmpeg cache.
|
|
||||||
id: cache-ffmpeg
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ${{ env.LibrariesPath }}/ffmpeg-cache
|
|
||||||
key: ${{ runner.OS }}-ffmpeg-${{ env.CACHE_KEY }}
|
|
||||||
- name: FFmpeg build.
|
|
||||||
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone --branch release/4.2 $GIT/FFmpeg/FFmpeg ffmpeg
|
|
||||||
cd ffmpeg
|
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
|
||||||
--disable-debug \
|
|
||||||
--disable-programs \
|
|
||||||
--disable-doc \
|
|
||||||
--disable-autodetect \
|
|
||||||
--disable-everything \
|
|
||||||
--disable-neon \
|
|
||||||
--disable-iconv \
|
|
||||||
--enable-gpl \
|
|
||||||
--enable-version3 \
|
|
||||||
--enable-libopus \
|
|
||||||
--enable-vaapi \
|
|
||||||
--enable-vdpau \
|
|
||||||
--enable-decoder=aac \
|
|
||||||
--enable-decoder=aac_latm \
|
|
||||||
--enable-decoder=aasc \
|
|
||||||
--enable-decoder=flac \
|
|
||||||
--enable-decoder=gif \
|
|
||||||
--enable-decoder=h264 \
|
|
||||||
--enable-decoder=mp1 \
|
|
||||||
--enable-decoder=mp1float \
|
|
||||||
--enable-decoder=mp2 \
|
|
||||||
--enable-decoder=mp2float \
|
|
||||||
--enable-decoder=mp3 \
|
|
||||||
--enable-decoder=mp3adu \
|
|
||||||
--enable-decoder=mp3adufloat \
|
|
||||||
--enable-decoder=mp3float \
|
|
||||||
--enable-decoder=mp3on4 \
|
|
||||||
--enable-decoder=mp3on4float \
|
|
||||||
--enable-decoder=mpeg4 \
|
|
||||||
--enable-decoder=msmpeg4v2 \
|
|
||||||
--enable-decoder=msmpeg4v3 \
|
|
||||||
--enable-decoder=opus \
|
|
||||||
--enable-decoder=vorbis \
|
|
||||||
--enable-decoder=wavpack \
|
|
||||||
--enable-decoder=wmalossless \
|
|
||||||
--enable-decoder=wmapro \
|
|
||||||
--enable-decoder=wmav1 \
|
|
||||||
--enable-decoder=wmav2 \
|
|
||||||
--enable-decoder=wmavoice \
|
|
||||||
--enable-encoder=libopus \
|
|
||||||
--enable-hwaccel=h264_vaapi \
|
|
||||||
--enable-hwaccel=h264_vdpau \
|
|
||||||
--enable-hwaccel=mpeg4_vaapi \
|
|
||||||
--enable-hwaccel=mpeg4_vdpau \
|
|
||||||
--enable-parser=aac \
|
|
||||||
--enable-parser=aac_latm \
|
|
||||||
--enable-parser=flac \
|
|
||||||
--enable-parser=h264 \
|
|
||||||
--enable-parser=mpeg4video \
|
|
||||||
--enable-parser=mpegaudio \
|
|
||||||
--enable-parser=opus \
|
|
||||||
--enable-parser=vorbis \
|
|
||||||
--enable-demuxer=aac \
|
|
||||||
--enable-demuxer=flac \
|
|
||||||
--enable-demuxer=gif \
|
|
||||||
--enable-demuxer=h264 \
|
|
||||||
--enable-demuxer=mov \
|
|
||||||
--enable-demuxer=mp3 \
|
|
||||||
--enable-demuxer=ogg \
|
|
||||||
--enable-demuxer=wav \
|
|
||||||
--enable-muxer=ogg \
|
|
||||||
--enable-muxer=opus
|
|
||||||
|
|
||||||
make -j$(nproc)
|
|
||||||
sudo make DESTDIR="$LibrariesPath/ffmpeg-cache" install
|
|
||||||
cd ..
|
|
||||||
rm -rf ffmpeg
|
|
||||||
- name: FFmpeg install.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
sudo cp -R ffmpeg-cache/. /
|
|
||||||
|
|
||||||
- name: OpenAL Soft.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b openal-soft-1.20.1 --depth=1 $GIT/kcat/openal-soft.git
|
|
||||||
cd openal-soft/build
|
|
||||||
cmake .. \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DALSOFT_EXAMPLES=OFF \
|
|
||||||
-DALSOFT_TESTS=OFF \
|
|
||||||
-DALSOFT_UTILS=OFF \
|
|
||||||
-DALSOFT_CONFIG=OFF
|
|
||||||
|
|
||||||
cmake --build .
|
|
||||||
cmake --install .
|
|
||||||
cd -
|
|
||||||
rm -rf openal-soft
|
|
||||||
|
|
||||||
- name: OpenSSL cache.
|
- name: OpenSSL cache.
|
||||||
id: cache-openssl
|
id: cache-openssl
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
|
@ -327,7 +105,7 @@ jobs:
|
||||||
git clone -b OpenSSL_${OPENSSL_VER}-stable --depth=1 \
|
git clone -b OpenSSL_${OPENSSL_VER}-stable --depth=1 \
|
||||||
$GIT/openssl/openssl $opensslDir
|
$GIT/openssl/openssl $opensslDir
|
||||||
cd $opensslDir
|
cd $opensslDir
|
||||||
./config --prefix=/usr
|
./config
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make DESTDIR="$LibrariesPath/openssl-cache" install_sw
|
sudo make DESTDIR="$LibrariesPath/openssl-cache" install_sw
|
||||||
cd ..
|
cd ..
|
||||||
|
|
@ -336,6 +114,305 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
sudo cp -R openssl-cache/. /
|
sudo cp -R openssl-cache/. /
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
|
- name: Python 3.8 cache.
|
||||||
|
id: cache-python
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.LibrariesPath }}/python-cache
|
||||||
|
key: ${{ runner.OS }}-python-${{ env.CACHE_KEY }}
|
||||||
|
- name: Python 3.8 build.
|
||||||
|
if: steps.python-openssl.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v3.8.2 --depth=1 $GIT/python/cpython.git
|
||||||
|
cd cpython
|
||||||
|
./configure --enable-optimizations
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make DESTDIR="$LibrariesPath/python-cache" install
|
||||||
|
cd ..
|
||||||
|
rm -rf cpython
|
||||||
|
- name: Python 3.8 install.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
sudo cp -R python-cache/. /
|
||||||
|
|
||||||
|
- name: CMake.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
file=cmake-$CMAKE_VER-Linux-x86_64.sh
|
||||||
|
wget $GIT/Kitware/CMake/releases/download/v$CMAKE_VER/$file
|
||||||
|
sudo mkdir /opt/cmake
|
||||||
|
sudo sh $file --prefix=/opt/cmake --skip-license
|
||||||
|
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
|
||||||
|
rm $file
|
||||||
|
|
||||||
|
cmake --version
|
||||||
|
|
||||||
|
- name: Extra CMake Modules.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v5.69.0 --depth=1 $GIT/KDE/extra-cmake-modules.git
|
||||||
|
cd extra-cmake-modules
|
||||||
|
cmake . -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build .
|
||||||
|
sudo cmake --install .
|
||||||
|
cd ..
|
||||||
|
rm -rf extra-cmake-modules
|
||||||
|
|
||||||
|
- name: Meson.
|
||||||
|
run: |
|
||||||
|
sudo python3 -m pip install meson==0.54.0
|
||||||
|
meson --version
|
||||||
|
|
||||||
|
- name: Ninja.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
||||||
|
unzip ninja-linux.zip
|
||||||
|
chmod +x ninja
|
||||||
|
mv ninja /usr/local/bin
|
||||||
|
|
||||||
|
ninja --version
|
||||||
|
|
||||||
|
- name: NASM.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b nasm-2.14.02 --depth=1 https://repo.or.cz/nasm.git
|
||||||
|
cd nasm
|
||||||
|
./autogen.sh
|
||||||
|
./configure
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo install nasm /usr/local/bin/nasm
|
||||||
|
sudo install ndisasm /usr/local/bin/ndisasm
|
||||||
|
cd ..
|
||||||
|
rm -rf nasm
|
||||||
|
|
||||||
|
- name: Range-v3.
|
||||||
|
run: |
|
||||||
|
echo "Find necessary branch from doc."
|
||||||
|
cloneRange=$(grep -A 1 "range-v3" $REPO_NAME/$DOC_PATH | sed -n 1p)
|
||||||
|
cd $LibrariesPath
|
||||||
|
echo $cloneRange
|
||||||
|
eval $cloneRange
|
||||||
|
cd range-v3
|
||||||
|
|
||||||
|
cmake . \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DRANGE_V3_TESTS=OFF \
|
||||||
|
-DRANGE_V3_EXAMPLES=OFF \
|
||||||
|
-DRANGE_V3_DOCS=OFF
|
||||||
|
|
||||||
|
cmake --build .
|
||||||
|
sudo cmake --install .
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf range-v3
|
||||||
|
|
||||||
|
- name: MiniZip.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v1.2.11 --depth=1 $GIT/madler/zlib.git
|
||||||
|
cd zlib/contrib/minizip
|
||||||
|
autoreconf -i
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
cd ../../..
|
||||||
|
rm -rf zlib
|
||||||
|
|
||||||
|
- name: LZ4.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v1.9.2 --depth=1 $GIT/lz4/lz4.git
|
||||||
|
cd lz4
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
cd ..
|
||||||
|
rm -rf lz4
|
||||||
|
|
||||||
|
- name: xxHash.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v0.7.2 --depth=1 $GIT/Cyan4973/xxHash.git
|
||||||
|
cd xxHash
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
cd ..
|
||||||
|
rm -rf xxHash
|
||||||
|
|
||||||
|
- name: Dav1d.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b 0.6.0 --depth=1 $GIT/videolan/dav1d.git
|
||||||
|
cd dav1d
|
||||||
|
mkdir build && cd build
|
||||||
|
meson .. \
|
||||||
|
--libdir=/usr/local/lib \
|
||||||
|
-Denable_tools=false \
|
||||||
|
-Denable_tests=false
|
||||||
|
ninja
|
||||||
|
sudo ninja install
|
||||||
|
sudo ldconfig
|
||||||
|
cd ../..
|
||||||
|
rm -rf dav1d
|
||||||
|
|
||||||
|
- name: FFmpeg cache.
|
||||||
|
id: cache-ffmpeg
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.LibrariesPath }}/ffmpeg-cache
|
||||||
|
key: ${{ runner.OS }}-ffmpeg-${{ env.CACHE_KEY }}
|
||||||
|
- name: FFmpeg build.
|
||||||
|
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone --branch release/4.2 $GIT/FFmpeg/FFmpeg ffmpeg
|
||||||
|
cd ffmpeg
|
||||||
|
./configure \
|
||||||
|
--disable-debug \
|
||||||
|
--disable-programs \
|
||||||
|
--disable-doc \
|
||||||
|
--disable-network \
|
||||||
|
--disable-autodetect \
|
||||||
|
--disable-everything \
|
||||||
|
--disable-neon \
|
||||||
|
--disable-iconv \
|
||||||
|
--enable-libdav1d \
|
||||||
|
--enable-libopus \
|
||||||
|
--enable-vaapi \
|
||||||
|
--enable-vdpau \
|
||||||
|
--enable-protocol=file \
|
||||||
|
--enable-hwaccel=h264_vaapi \
|
||||||
|
--enable-hwaccel=h264_vdpau \
|
||||||
|
--enable-hwaccel=mpeg4_vaapi \
|
||||||
|
--enable-hwaccel=mpeg4_vdpau \
|
||||||
|
--enable-decoder=aac \
|
||||||
|
--enable-decoder=aac_fixed \
|
||||||
|
--enable-decoder=aac_latm \
|
||||||
|
--enable-decoder=aasc \
|
||||||
|
--enable-decoder=alac \
|
||||||
|
--enable-decoder=flac \
|
||||||
|
--enable-decoder=gif \
|
||||||
|
--enable-decoder=h264 \
|
||||||
|
--enable-decoder=hevc \
|
||||||
|
--enable-decoder=libdav1d \
|
||||||
|
--enable-decoder=mp1 \
|
||||||
|
--enable-decoder=mp1float \
|
||||||
|
--enable-decoder=mp2 \
|
||||||
|
--enable-decoder=mp2float \
|
||||||
|
--enable-decoder=mp3 \
|
||||||
|
--enable-decoder=mp3adu \
|
||||||
|
--enable-decoder=mp3adufloat \
|
||||||
|
--enable-decoder=mp3float \
|
||||||
|
--enable-decoder=mp3on4 \
|
||||||
|
--enable-decoder=mp3on4float \
|
||||||
|
--enable-decoder=mpeg4 \
|
||||||
|
--enable-decoder=msmpeg4v2 \
|
||||||
|
--enable-decoder=msmpeg4v3 \
|
||||||
|
--enable-decoder=opus \
|
||||||
|
--enable-decoder=pcm_alaw \
|
||||||
|
--enable-decoder=pcm_f32be \
|
||||||
|
--enable-decoder=pcm_f32le \
|
||||||
|
--enable-decoder=pcm_f64be \
|
||||||
|
--enable-decoder=pcm_f64le \
|
||||||
|
--enable-decoder=pcm_lxf \
|
||||||
|
--enable-decoder=pcm_mulaw \
|
||||||
|
--enable-decoder=pcm_s16be \
|
||||||
|
--enable-decoder=pcm_s16be_planar \
|
||||||
|
--enable-decoder=pcm_s16le \
|
||||||
|
--enable-decoder=pcm_s16le_planar \
|
||||||
|
--enable-decoder=pcm_s24be \
|
||||||
|
--enable-decoder=pcm_s24daud \
|
||||||
|
--enable-decoder=pcm_s24le \
|
||||||
|
--enable-decoder=pcm_s24le_planar \
|
||||||
|
--enable-decoder=pcm_s32be \
|
||||||
|
--enable-decoder=pcm_s32le \
|
||||||
|
--enable-decoder=pcm_s32le_planar \
|
||||||
|
--enable-decoder=pcm_s64be \
|
||||||
|
--enable-decoder=pcm_s64le \
|
||||||
|
--enable-decoder=pcm_s8 \
|
||||||
|
--enable-decoder=pcm_s8_planar \
|
||||||
|
--enable-decoder=pcm_u16be \
|
||||||
|
--enable-decoder=pcm_u16le \
|
||||||
|
--enable-decoder=pcm_u24be \
|
||||||
|
--enable-decoder=pcm_u24le \
|
||||||
|
--enable-decoder=pcm_u32be \
|
||||||
|
--enable-decoder=pcm_u32le \
|
||||||
|
--enable-decoder=pcm_u8 \
|
||||||
|
--enable-decoder=pcm_zork \
|
||||||
|
--enable-decoder=vorbis \
|
||||||
|
--enable-decoder=wavpack \
|
||||||
|
--enable-decoder=wmalossless \
|
||||||
|
--enable-decoder=wmapro \
|
||||||
|
--enable-decoder=wmav1 \
|
||||||
|
--enable-decoder=wmav2 \
|
||||||
|
--enable-decoder=wmavoice \
|
||||||
|
--enable-encoder=libopus \
|
||||||
|
--enable-parser=aac \
|
||||||
|
--enable-parser=aac_latm \
|
||||||
|
--enable-parser=flac \
|
||||||
|
--enable-parser=h264 \
|
||||||
|
--enable-parser=hevc \
|
||||||
|
--enable-parser=mpeg4video \
|
||||||
|
--enable-parser=mpegaudio \
|
||||||
|
--enable-parser=opus \
|
||||||
|
--enable-parser=vorbis \
|
||||||
|
--enable-demuxer=aac \
|
||||||
|
--enable-demuxer=flac \
|
||||||
|
--enable-demuxer=gif \
|
||||||
|
--enable-demuxer=h264 \
|
||||||
|
--enable-demuxer=hevc \
|
||||||
|
--enable-demuxer=m4v \
|
||||||
|
--enable-demuxer=mov \
|
||||||
|
--enable-demuxer=mp3 \
|
||||||
|
--enable-demuxer=ogg \
|
||||||
|
--enable-demuxer=wav \
|
||||||
|
--enable-muxer=ogg \
|
||||||
|
--enable-muxer=opus
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make DESTDIR="$LibrariesPath/ffmpeg-cache" install
|
||||||
|
cd ..
|
||||||
|
rm -rf ffmpeg
|
||||||
|
- name: FFmpeg install.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
sudo cp -R ffmpeg-cache/. /
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
|
- name: OpenAL Soft.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b openal-soft-1.20.1 --depth=1 $GIT/kcat/openal-soft.git
|
||||||
|
cd openal-soft/build
|
||||||
|
cmake .. \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DALSOFT_EXAMPLES=OFF \
|
||||||
|
-DALSOFT_TESTS=OFF \
|
||||||
|
-DALSOFT_UTILS=OFF \
|
||||||
|
-DALSOFT_CONFIG=OFF
|
||||||
|
|
||||||
|
cmake --build .
|
||||||
|
sudo cmake --install .
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
|
cd -
|
||||||
|
rm -rf openal-soft
|
||||||
|
|
||||||
- name: Hunspell.
|
- name: Hunspell.
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -344,9 +421,10 @@ jobs:
|
||||||
git clone -b v1.7.0 --depth=1 $GIT/hunspell/hunspell.git
|
git clone -b v1.7.0 --depth=1 $GIT/hunspell/hunspell.git
|
||||||
cd hunspell
|
cd hunspell
|
||||||
autoreconf -vfi
|
autoreconf -vfi
|
||||||
./configure --prefix=/usr
|
./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf hunspell
|
rm -rf hunspell
|
||||||
|
|
||||||
|
|
@ -359,6 +437,7 @@ jobs:
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf libxkbcommon
|
rm -rf libxkbcommon
|
||||||
|
|
||||||
|
|
@ -371,6 +450,7 @@ jobs:
|
||||||
./autogen.sh --disable-documentation --disable-dtd-validation
|
./autogen.sh --disable-documentation --disable-dtd-validation
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf wayland
|
rm -rf wayland
|
||||||
|
|
||||||
|
|
@ -379,7 +459,7 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/qt-cache
|
path: ${{ env.LibrariesPath }}/qt-cache
|
||||||
key: ${{ runner.OS }}-qt-${{ env.CACHE_KEY }}-${{ hashFiles('**/qtbase_5_12_5.diff') }}
|
key: ${{ runner.OS }}-qt-${{ env.CACHE_KEY }}-${{ hashFiles('**/qtbase_5_12_5_appimage.diff') }}
|
||||||
- name: Qt 5.12.5 build.
|
- name: Qt 5.12.5 build.
|
||||||
if: steps.cache-qt.outputs.cache-hit != 'true'
|
if: steps.cache-qt.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -393,7 +473,7 @@ jobs:
|
||||||
git apply ../../../$REPO_NAME/Telegram/Patches/qtbase_${QT}_appimage.diff
|
git apply ../../../$REPO_NAME/Telegram/Patches/qtbase_${QT}_appimage.diff
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
./configure -prefix /usr \
|
./configure -prefix /usr/local \
|
||||||
-release \
|
-release \
|
||||||
-opensource \
|
-opensource \
|
||||||
-confirm-license \
|
-confirm-license \
|
||||||
|
|
@ -403,10 +483,8 @@ jobs:
|
||||||
-qt-harfbuzz \
|
-qt-harfbuzz \
|
||||||
-qt-pcre \
|
-qt-pcre \
|
||||||
-qt-xcb \
|
-qt-xcb \
|
||||||
-system-freetype \
|
|
||||||
-fontconfig \
|
|
||||||
-dbus-linked \
|
|
||||||
-openssl-linked \
|
-openssl-linked \
|
||||||
|
OPENSSL_LIBS="-L/usr/local/lib -lssl -lcrypto" \
|
||||||
-nomake examples \
|
-nomake examples \
|
||||||
-nomake tests
|
-nomake tests
|
||||||
|
|
||||||
|
|
@ -418,20 +496,36 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
sudo cp -R qt-cache/. /
|
sudo cp -R qt-cache/. /
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
- name: Qtstyleplugins.
|
- name: Qt Style Plugins.
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
|
|
||||||
git clone --depth=1 git://code.qt.io/qt/qtstyleplugins.git
|
git clone --depth=1 git://code.qt.io/qt/qtstyleplugins.git
|
||||||
cd qtstyleplugins
|
cd qtstyleplugins
|
||||||
qmake PREFIX='/usr'
|
git apply ../../$REPO_NAME/Telegram/Patches/qtstyleplugins.diff
|
||||||
|
qmake
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf qtstyleplugins
|
rm -rf qtstyleplugins
|
||||||
|
|
||||||
- name: Libdbusmenu-qt.
|
- name: Fcitx Qt5.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b 1.2.4 --depth=1 $GIT/fcitx/fcitx-qt5.git
|
||||||
|
cd fcitx-qt5
|
||||||
|
cmake . \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DENABLE_LIBRARY=OFF
|
||||||
|
cmake --build .
|
||||||
|
sudo install -D platforminputcontext/libfcitxplatforminputcontextplugin.so /usr/local/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
|
||||||
|
cd ..
|
||||||
|
rm -rf fcitx-qt5
|
||||||
|
|
||||||
|
- name: LibDBusMenu Qt.
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
|
|
@ -439,12 +533,11 @@ jobs:
|
||||||
git clone -b 0.9.3+16.04.20160218-0ubuntu1 --depth=1 $GIT/unity8-team/libdbusmenu-qt.git
|
git clone -b 0.9.3+16.04.20160218-0ubuntu1 --depth=1 $GIT/unity8-team/libdbusmenu-qt.git
|
||||||
cd libdbusmenu-qt
|
cd libdbusmenu-qt
|
||||||
cmake . \
|
cmake . \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DWITH_DOC=OFF
|
-DWITH_DOC=OFF
|
||||||
|
|
||||||
cmake --build .
|
cmake --build .
|
||||||
cmake --install .
|
sudo cmake --install .
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf libdbusmenu-qt
|
rm -rf libdbusmenu-qt
|
||||||
|
|
||||||
|
|
@ -454,11 +547,10 @@ jobs:
|
||||||
API_ID: ${{ secrets.API_ID }}
|
API_ID: ${{ secrets.API_ID }}
|
||||||
API_HASH: ${{ secrets.API_HASH }}
|
API_HASH: ${{ secrets.API_HASH }}
|
||||||
run: |
|
run: |
|
||||||
cd $REPO_NAME
|
cd $REPO_NAME/Telegram
|
||||||
|
|
||||||
cmake . \
|
./configure.sh \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DTDESKTOP_API_ID=${API_ID} \
|
-DTDESKTOP_API_ID=${API_ID} \
|
||||||
-DTDESKTOP_API_HASH=${API_HASH} \
|
-DTDESKTOP_API_HASH=${API_HASH} \
|
||||||
-DDESKTOP_APP_DISABLE_AUTOUPDATE=OFF \
|
-DDESKTOP_APP_DISABLE_AUTOUPDATE=OFF \
|
||||||
|
|
@ -469,14 +561,9 @@ jobs:
|
||||||
-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF \
|
-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF \
|
||||||
-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
|
-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
|
||||||
|
|
||||||
|
cd ../out/Release
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
DESTDIR=../../AppDir cmake --install .
|
||||||
mkdir AppDir
|
|
||||||
DESTDIR=AppDir cmake --install .
|
|
||||||
|
|
||||||
- name: Update linker cache.
|
|
||||||
if: env.ONLY_CACHE == 'false'
|
|
||||||
run: sudo ldconfig
|
|
||||||
|
|
||||||
- name: AppImageKit-checkrt build.
|
- name: AppImageKit-checkrt build.
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
|
|
@ -505,7 +592,7 @@ jobs:
|
||||||
-exclude-libs=libatk-1.0.so.0,libatk-bridge-2.0.so.0,libatspi.so.0,libcairo-gobject.so.2,libcairo.so.2,libgdk-3.so.0,libgdk-x11-2.0.so.0,libgmodule-2.0.so.0,libgtk-3.so.0,libgtk-x11-2.0.so.0,libpixman-1.so.0,libpng12.so.0 \
|
-exclude-libs=libatk-1.0.so.0,libatk-bridge-2.0.so.0,libatspi.so.0,libcairo-gobject.so.2,libcairo.so.2,libgdk-3.so.0,libgdk-x11-2.0.so.0,libgmodule-2.0.so.0,libgtk-3.so.0,libgtk-x11-2.0.so.0,libpixman-1.so.0,libpng12.so.0 \
|
||||||
-extra-plugins=bearer,iconengines,imageformats,platforminputcontexts,platforms/libqwayland-egl.so,platforms/libqwayland-generic.so,platformthemes/libqgtk3.so,platformthemes/libqxdgdesktopportal.so,wayland-decoration-client,wayland-graphics-integration-client,wayland-shell-integration
|
-extra-plugins=bearer,iconengines,imageformats,platforminputcontexts,platforms/libqwayland-egl.so,platforms/libqwayland-generic.so,platformthemes/libqgtk3.so,platformthemes/libqxdgdesktopportal.so,wayland-decoration-client,wayland-graphics-integration-client,wayland-shell-integration
|
||||||
|
|
||||||
- name: Move artifact.
|
- name: Get artifact name.
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
run: |
|
run: |
|
||||||
cd $REPO_NAME
|
cd $REPO_NAME
|
||||||
|
|
@ -514,14 +601,20 @@ jobs:
|
||||||
version=${tag_name#k}
|
version=${tag_name#k}
|
||||||
appimage_name=$(echo Kotatogram_Desktop*.AppImage)
|
appimage_name=$(echo Kotatogram_Desktop*.AppImage)
|
||||||
artifact_name=KtgAppImage.$version.tar.xz
|
artifact_name=KtgAppImage.$version.tar.xz
|
||||||
|
echo ::set-env name=APPIMAGE_NAME::$appimage_name
|
||||||
echo ::set-env name=ARTIFACT_NAME::$artifact_name
|
echo ::set-env name=ARTIFACT_NAME::$artifact_name
|
||||||
|
|
||||||
|
- name: Move artifact.
|
||||||
|
if: env.ONLY_CACHE == 'false'
|
||||||
|
run: |
|
||||||
|
cd $REPO_NAME
|
||||||
|
|
||||||
mkdir -p artifact/Kotatogram
|
mkdir -p artifact/Kotatogram
|
||||||
mv $appimage_name artifact/Kotatogram/Kotatogram.AppImage
|
mv $APPIMAGE_NAME artifact/Kotatogram/Kotatogram.AppImage
|
||||||
mv bin/Updater artifact/Kotatogram
|
mv out/Release/bin/Updater artifact/Kotatogram
|
||||||
|
|
||||||
cd artifact
|
cd artifact
|
||||||
tar -caf $artifact_name Kotatogram
|
tar -caf $ARTIFACT_NAME Kotatogram
|
||||||
|
|
||||||
- name: Upload release asset.
|
- name: Upload release asset.
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
|
|
|
||||||
596
.github/workflows/appimage.yml
vendored
596
.github/workflows/appimage.yml
vendored
|
|
@ -4,11 +4,11 @@ on:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- '*.md'
|
- '**.md'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- '*.md'
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GIT: "https://github.com"
|
GIT: "https://github.com"
|
||||||
QT: "5_12_5"
|
QT: "5_12_8"
|
||||||
OPENSSL_VER: "1_1_1"
|
OPENSSL_VER: "1_1_1"
|
||||||
CMAKE_VER: "3.17.0"
|
CMAKE_VER: "3.17.0"
|
||||||
UPLOAD_ARTIFACT: "false"
|
UPLOAD_ARTIFACT: "false"
|
||||||
|
|
@ -87,7 +87,7 @@ jobs:
|
||||||
gcc --version > CACHE_KEY.txt
|
gcc --version > CACHE_KEY.txt
|
||||||
echo $MANUAL_CACHING >> CACHE_KEY.txt
|
echo $MANUAL_CACHING >> CACHE_KEY.txt
|
||||||
if [ "$AUTO_CACHING" == "1" ]; then
|
if [ "$AUTO_CACHING" == "1" ]; then
|
||||||
thisFile=$REPO_NAME/.github/workflows/linux.yml
|
thisFile=$REPO_NAME/.github/workflows/appimage.yml
|
||||||
echo `md5sum $thisFile | cut -c -32` >> CACHE_KEY.txt
|
echo `md5sum $thisFile | cut -c -32` >> CACHE_KEY.txt
|
||||||
fi
|
fi
|
||||||
md5cache=$(md5sum CACHE_KEY.txt | cut -c -32)
|
md5cache=$(md5sum CACHE_KEY.txt | cut -c -32)
|
||||||
|
|
@ -97,228 +97,6 @@ jobs:
|
||||||
cd Libraries
|
cd Libraries
|
||||||
echo ::set-env name=LibrariesPath::`pwd`
|
echo ::set-env name=LibrariesPath::`pwd`
|
||||||
|
|
||||||
- name: CMake.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
file=cmake-$CMAKE_VER-Linux-x86_64.sh
|
|
||||||
wget $GIT/Kitware/CMake/releases/download/v$CMAKE_VER/$file
|
|
||||||
sudo mkdir /opt/cmake
|
|
||||||
sudo sh $file --prefix=/opt/cmake --skip-license
|
|
||||||
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
|
|
||||||
rm $file
|
|
||||||
|
|
||||||
cmake --version
|
|
||||||
|
|
||||||
# TODO: AV1 support
|
|
||||||
# - name: Meson.
|
|
||||||
# run: |
|
|
||||||
# sudo python3 -m pip install meson==0.44.1
|
|
||||||
# meson --version
|
|
||||||
|
|
||||||
# TODO: AV1 support
|
|
||||||
# - name: Ninja.
|
|
||||||
# run: |
|
|
||||||
# cd $LibrariesPath
|
|
||||||
|
|
||||||
# wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
|
||||||
# unzip ninja-linux.zip
|
|
||||||
# chmod +x ninja
|
|
||||||
# mv ninja /usr/local/bin
|
|
||||||
|
|
||||||
# ninja --version
|
|
||||||
|
|
||||||
- name: NASM.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b nasm-2.14.02 --depth=1 https://repo.or.cz/nasm.git
|
|
||||||
cd nasm
|
|
||||||
./autogen.sh
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make -j$(nproc)
|
|
||||||
sudo install nasm /usr/bin/nasm
|
|
||||||
sudo install ndisasm /usr/bin/ndisasm
|
|
||||||
cd ..
|
|
||||||
rm -rf nasm
|
|
||||||
|
|
||||||
- name: Range-v3.
|
|
||||||
run: |
|
|
||||||
echo "Find necessary branch from doc."
|
|
||||||
cloneRange=$(grep -A 1 "range-v3" $REPO_NAME/$DOC_PATH | sed -n 1p)
|
|
||||||
cd $LibrariesPath
|
|
||||||
echo $cloneRange
|
|
||||||
eval $cloneRange
|
|
||||||
cd range-v3
|
|
||||||
|
|
||||||
cmake . \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DRANGE_V3_TESTS=OFF \
|
|
||||||
-DRANGE_V3_EXAMPLES=OFF \
|
|
||||||
-DRANGE_V3_DOCS=OFF
|
|
||||||
|
|
||||||
cmake --build .
|
|
||||||
cmake --install .
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
rm -rf range-v3
|
|
||||||
|
|
||||||
- name: MiniZip.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b v1.2.11 --depth=1 $GIT/madler/zlib.git
|
|
||||||
cd zlib/contrib/minizip
|
|
||||||
autoreconf -i
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
cd ../../..
|
|
||||||
rm -rf zlib
|
|
||||||
|
|
||||||
- name: LZ4.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b v1.9.2 --depth=1 $GIT/lz4/lz4.git
|
|
||||||
cd lz4
|
|
||||||
make -j$(nproc)
|
|
||||||
PREFIX=/usr sudo make install
|
|
||||||
cd ..
|
|
||||||
rm -rf lz4
|
|
||||||
|
|
||||||
- name: xxHash.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b v0.7.2 --depth=1 $GIT/Cyan4973/xxHash.git
|
|
||||||
cd xxHash
|
|
||||||
make -j$(nproc)
|
|
||||||
PREFIX=/usr sudo make install
|
|
||||||
cd ..
|
|
||||||
rm -rf xxHash
|
|
||||||
|
|
||||||
# TODO: AV1 support
|
|
||||||
# - name: dav1d.
|
|
||||||
# run: |
|
|
||||||
# cd $LibrariesPath
|
|
||||||
|
|
||||||
# git clone -b 0.6.0 --depth=1 $GIT/videolan/dav1d.git
|
|
||||||
# cd dav1d
|
|
||||||
# mkdir build && cd build
|
|
||||||
# meson --prefix=/usr ..
|
|
||||||
# ninja
|
|
||||||
# ninja install
|
|
||||||
# cd ../..
|
|
||||||
# rm -rf dav1d
|
|
||||||
|
|
||||||
- name: FFmpeg cache.
|
|
||||||
id: cache-ffmpeg
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ${{ env.LibrariesPath }}/ffmpeg-cache
|
|
||||||
key: ${{ runner.OS }}-ffmpeg-${{ env.CACHE_KEY }}
|
|
||||||
- name: FFmpeg build.
|
|
||||||
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone --branch release/4.2 $GIT/FFmpeg/FFmpeg ffmpeg
|
|
||||||
cd ffmpeg
|
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
|
||||||
--disable-debug \
|
|
||||||
--disable-programs \
|
|
||||||
--disable-doc \
|
|
||||||
--disable-autodetect \
|
|
||||||
--disable-everything \
|
|
||||||
--disable-neon \
|
|
||||||
--disable-iconv \
|
|
||||||
--enable-gpl \
|
|
||||||
--enable-version3 \
|
|
||||||
--enable-libopus \
|
|
||||||
--enable-vaapi \
|
|
||||||
--enable-vdpau \
|
|
||||||
--enable-decoder=aac \
|
|
||||||
--enable-decoder=aac_latm \
|
|
||||||
--enable-decoder=aasc \
|
|
||||||
--enable-decoder=flac \
|
|
||||||
--enable-decoder=gif \
|
|
||||||
--enable-decoder=h264 \
|
|
||||||
--enable-decoder=mp1 \
|
|
||||||
--enable-decoder=mp1float \
|
|
||||||
--enable-decoder=mp2 \
|
|
||||||
--enable-decoder=mp2float \
|
|
||||||
--enable-decoder=mp3 \
|
|
||||||
--enable-decoder=mp3adu \
|
|
||||||
--enable-decoder=mp3adufloat \
|
|
||||||
--enable-decoder=mp3float \
|
|
||||||
--enable-decoder=mp3on4 \
|
|
||||||
--enable-decoder=mp3on4float \
|
|
||||||
--enable-decoder=mpeg4 \
|
|
||||||
--enable-decoder=msmpeg4v2 \
|
|
||||||
--enable-decoder=msmpeg4v3 \
|
|
||||||
--enable-decoder=opus \
|
|
||||||
--enable-decoder=vorbis \
|
|
||||||
--enable-decoder=wavpack \
|
|
||||||
--enable-decoder=wmalossless \
|
|
||||||
--enable-decoder=wmapro \
|
|
||||||
--enable-decoder=wmav1 \
|
|
||||||
--enable-decoder=wmav2 \
|
|
||||||
--enable-decoder=wmavoice \
|
|
||||||
--enable-encoder=libopus \
|
|
||||||
--enable-hwaccel=h264_vaapi \
|
|
||||||
--enable-hwaccel=h264_vdpau \
|
|
||||||
--enable-hwaccel=mpeg4_vaapi \
|
|
||||||
--enable-hwaccel=mpeg4_vdpau \
|
|
||||||
--enable-parser=aac \
|
|
||||||
--enable-parser=aac_latm \
|
|
||||||
--enable-parser=flac \
|
|
||||||
--enable-parser=h264 \
|
|
||||||
--enable-parser=mpeg4video \
|
|
||||||
--enable-parser=mpegaudio \
|
|
||||||
--enable-parser=opus \
|
|
||||||
--enable-parser=vorbis \
|
|
||||||
--enable-demuxer=aac \
|
|
||||||
--enable-demuxer=flac \
|
|
||||||
--enable-demuxer=gif \
|
|
||||||
--enable-demuxer=h264 \
|
|
||||||
--enable-demuxer=mov \
|
|
||||||
--enable-demuxer=mp3 \
|
|
||||||
--enable-demuxer=ogg \
|
|
||||||
--enable-demuxer=wav \
|
|
||||||
--enable-muxer=ogg \
|
|
||||||
--enable-muxer=opus
|
|
||||||
|
|
||||||
make -j$(nproc)
|
|
||||||
sudo make DESTDIR="$LibrariesPath/ffmpeg-cache" install
|
|
||||||
cd ..
|
|
||||||
rm -rf ffmpeg
|
|
||||||
- name: FFmpeg install.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
sudo cp -R ffmpeg-cache/. /
|
|
||||||
|
|
||||||
- name: OpenAL Soft.
|
|
||||||
run: |
|
|
||||||
cd $LibrariesPath
|
|
||||||
|
|
||||||
git clone -b openal-soft-1.20.1 --depth=1 $GIT/kcat/openal-soft.git
|
|
||||||
cd openal-soft/build
|
|
||||||
cmake .. \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DALSOFT_EXAMPLES=OFF \
|
|
||||||
-DALSOFT_TESTS=OFF \
|
|
||||||
-DALSOFT_UTILS=OFF \
|
|
||||||
-DALSOFT_CONFIG=OFF
|
|
||||||
|
|
||||||
cmake --build .
|
|
||||||
cmake --install .
|
|
||||||
cd -
|
|
||||||
rm -rf openal-soft
|
|
||||||
|
|
||||||
- name: OpenSSL cache.
|
- name: OpenSSL cache.
|
||||||
id: cache-openssl
|
id: cache-openssl
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
|
@ -334,7 +112,7 @@ jobs:
|
||||||
git clone -b OpenSSL_${OPENSSL_VER}-stable --depth=1 \
|
git clone -b OpenSSL_${OPENSSL_VER}-stable --depth=1 \
|
||||||
$GIT/openssl/openssl $opensslDir
|
$GIT/openssl/openssl $opensslDir
|
||||||
cd $opensslDir
|
cd $opensslDir
|
||||||
./config --prefix=/usr
|
./config
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make DESTDIR="$LibrariesPath/openssl-cache" install_sw
|
sudo make DESTDIR="$LibrariesPath/openssl-cache" install_sw
|
||||||
cd ..
|
cd ..
|
||||||
|
|
@ -343,6 +121,305 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
sudo cp -R openssl-cache/. /
|
sudo cp -R openssl-cache/. /
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
|
- name: Python 3.8 cache.
|
||||||
|
id: cache-python
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.LibrariesPath }}/python-cache
|
||||||
|
key: ${{ runner.OS }}-python-${{ env.CACHE_KEY }}
|
||||||
|
- name: Python 3.8 build.
|
||||||
|
if: steps.python-openssl.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v3.8.2 --depth=1 $GIT/python/cpython.git
|
||||||
|
cd cpython
|
||||||
|
./configure --enable-optimizations
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make DESTDIR="$LibrariesPath/python-cache" install
|
||||||
|
cd ..
|
||||||
|
rm -rf cpython
|
||||||
|
- name: Python 3.8 install.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
sudo cp -R python-cache/. /
|
||||||
|
|
||||||
|
- name: CMake.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
file=cmake-$CMAKE_VER-Linux-x86_64.sh
|
||||||
|
wget $GIT/Kitware/CMake/releases/download/v$CMAKE_VER/$file
|
||||||
|
sudo mkdir /opt/cmake
|
||||||
|
sudo sh $file --prefix=/opt/cmake --skip-license
|
||||||
|
sudo ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
|
||||||
|
rm $file
|
||||||
|
|
||||||
|
cmake --version
|
||||||
|
|
||||||
|
- name: Extra CMake Modules.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v5.69.0 --depth=1 $GIT/KDE/extra-cmake-modules.git
|
||||||
|
cd extra-cmake-modules
|
||||||
|
cmake . -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build .
|
||||||
|
sudo cmake --install .
|
||||||
|
cd ..
|
||||||
|
rm -rf extra-cmake-modules
|
||||||
|
|
||||||
|
- name: Meson.
|
||||||
|
run: |
|
||||||
|
sudo python3 -m pip install meson==0.54.0
|
||||||
|
meson --version
|
||||||
|
|
||||||
|
- name: Ninja.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
||||||
|
unzip ninja-linux.zip
|
||||||
|
chmod +x ninja
|
||||||
|
mv ninja /usr/local/bin
|
||||||
|
|
||||||
|
ninja --version
|
||||||
|
|
||||||
|
- name: NASM.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b nasm-2.14.02 --depth=1 https://repo.or.cz/nasm.git
|
||||||
|
cd nasm
|
||||||
|
./autogen.sh
|
||||||
|
./configure
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo install nasm /usr/local/bin/nasm
|
||||||
|
sudo install ndisasm /usr/local/bin/ndisasm
|
||||||
|
cd ..
|
||||||
|
rm -rf nasm
|
||||||
|
|
||||||
|
- name: Range-v3.
|
||||||
|
run: |
|
||||||
|
echo "Find necessary branch from doc."
|
||||||
|
cloneRange=$(grep -A 1 "range-v3" $REPO_NAME/$DOC_PATH | sed -n 1p)
|
||||||
|
cd $LibrariesPath
|
||||||
|
echo $cloneRange
|
||||||
|
eval $cloneRange
|
||||||
|
cd range-v3
|
||||||
|
|
||||||
|
cmake . \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DRANGE_V3_TESTS=OFF \
|
||||||
|
-DRANGE_V3_EXAMPLES=OFF \
|
||||||
|
-DRANGE_V3_DOCS=OFF
|
||||||
|
|
||||||
|
cmake --build .
|
||||||
|
sudo cmake --install .
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf range-v3
|
||||||
|
|
||||||
|
- name: MiniZip.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v1.2.11 --depth=1 $GIT/madler/zlib.git
|
||||||
|
cd zlib/contrib/minizip
|
||||||
|
autoreconf -i
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
cd ../../..
|
||||||
|
rm -rf zlib
|
||||||
|
|
||||||
|
- name: LZ4.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v1.9.2 --depth=1 $GIT/lz4/lz4.git
|
||||||
|
cd lz4
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
cd ..
|
||||||
|
rm -rf lz4
|
||||||
|
|
||||||
|
- name: xxHash.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b v0.7.2 --depth=1 $GIT/Cyan4973/xxHash.git
|
||||||
|
cd xxHash
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
|
cd ..
|
||||||
|
rm -rf xxHash
|
||||||
|
|
||||||
|
- name: Dav1d.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b 0.6.0 --depth=1 $GIT/videolan/dav1d.git
|
||||||
|
cd dav1d
|
||||||
|
mkdir build && cd build
|
||||||
|
meson .. \
|
||||||
|
--libdir=/usr/local/lib \
|
||||||
|
-Denable_tools=false \
|
||||||
|
-Denable_tests=false
|
||||||
|
ninja
|
||||||
|
sudo ninja install
|
||||||
|
sudo ldconfig
|
||||||
|
cd ../..
|
||||||
|
rm -rf dav1d
|
||||||
|
|
||||||
|
- name: FFmpeg cache.
|
||||||
|
id: cache-ffmpeg
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.LibrariesPath }}/ffmpeg-cache
|
||||||
|
key: ${{ runner.OS }}-ffmpeg-${{ env.CACHE_KEY }}
|
||||||
|
- name: FFmpeg build.
|
||||||
|
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone --branch release/4.2 $GIT/FFmpeg/FFmpeg ffmpeg
|
||||||
|
cd ffmpeg
|
||||||
|
./configure \
|
||||||
|
--disable-debug \
|
||||||
|
--disable-programs \
|
||||||
|
--disable-doc \
|
||||||
|
--disable-network \
|
||||||
|
--disable-autodetect \
|
||||||
|
--disable-everything \
|
||||||
|
--disable-neon \
|
||||||
|
--disable-iconv \
|
||||||
|
--enable-libdav1d \
|
||||||
|
--enable-libopus \
|
||||||
|
--enable-vaapi \
|
||||||
|
--enable-vdpau \
|
||||||
|
--enable-protocol=file \
|
||||||
|
--enable-hwaccel=h264_vaapi \
|
||||||
|
--enable-hwaccel=h264_vdpau \
|
||||||
|
--enable-hwaccel=mpeg4_vaapi \
|
||||||
|
--enable-hwaccel=mpeg4_vdpau \
|
||||||
|
--enable-decoder=aac \
|
||||||
|
--enable-decoder=aac_fixed \
|
||||||
|
--enable-decoder=aac_latm \
|
||||||
|
--enable-decoder=aasc \
|
||||||
|
--enable-decoder=alac \
|
||||||
|
--enable-decoder=flac \
|
||||||
|
--enable-decoder=gif \
|
||||||
|
--enable-decoder=h264 \
|
||||||
|
--enable-decoder=hevc \
|
||||||
|
--enable-decoder=libdav1d \
|
||||||
|
--enable-decoder=mp1 \
|
||||||
|
--enable-decoder=mp1float \
|
||||||
|
--enable-decoder=mp2 \
|
||||||
|
--enable-decoder=mp2float \
|
||||||
|
--enable-decoder=mp3 \
|
||||||
|
--enable-decoder=mp3adu \
|
||||||
|
--enable-decoder=mp3adufloat \
|
||||||
|
--enable-decoder=mp3float \
|
||||||
|
--enable-decoder=mp3on4 \
|
||||||
|
--enable-decoder=mp3on4float \
|
||||||
|
--enable-decoder=mpeg4 \
|
||||||
|
--enable-decoder=msmpeg4v2 \
|
||||||
|
--enable-decoder=msmpeg4v3 \
|
||||||
|
--enable-decoder=opus \
|
||||||
|
--enable-decoder=pcm_alaw \
|
||||||
|
--enable-decoder=pcm_f32be \
|
||||||
|
--enable-decoder=pcm_f32le \
|
||||||
|
--enable-decoder=pcm_f64be \
|
||||||
|
--enable-decoder=pcm_f64le \
|
||||||
|
--enable-decoder=pcm_lxf \
|
||||||
|
--enable-decoder=pcm_mulaw \
|
||||||
|
--enable-decoder=pcm_s16be \
|
||||||
|
--enable-decoder=pcm_s16be_planar \
|
||||||
|
--enable-decoder=pcm_s16le \
|
||||||
|
--enable-decoder=pcm_s16le_planar \
|
||||||
|
--enable-decoder=pcm_s24be \
|
||||||
|
--enable-decoder=pcm_s24daud \
|
||||||
|
--enable-decoder=pcm_s24le \
|
||||||
|
--enable-decoder=pcm_s24le_planar \
|
||||||
|
--enable-decoder=pcm_s32be \
|
||||||
|
--enable-decoder=pcm_s32le \
|
||||||
|
--enable-decoder=pcm_s32le_planar \
|
||||||
|
--enable-decoder=pcm_s64be \
|
||||||
|
--enable-decoder=pcm_s64le \
|
||||||
|
--enable-decoder=pcm_s8 \
|
||||||
|
--enable-decoder=pcm_s8_planar \
|
||||||
|
--enable-decoder=pcm_u16be \
|
||||||
|
--enable-decoder=pcm_u16le \
|
||||||
|
--enable-decoder=pcm_u24be \
|
||||||
|
--enable-decoder=pcm_u24le \
|
||||||
|
--enable-decoder=pcm_u32be \
|
||||||
|
--enable-decoder=pcm_u32le \
|
||||||
|
--enable-decoder=pcm_u8 \
|
||||||
|
--enable-decoder=pcm_zork \
|
||||||
|
--enable-decoder=vorbis \
|
||||||
|
--enable-decoder=wavpack \
|
||||||
|
--enable-decoder=wmalossless \
|
||||||
|
--enable-decoder=wmapro \
|
||||||
|
--enable-decoder=wmav1 \
|
||||||
|
--enable-decoder=wmav2 \
|
||||||
|
--enable-decoder=wmavoice \
|
||||||
|
--enable-encoder=libopus \
|
||||||
|
--enable-parser=aac \
|
||||||
|
--enable-parser=aac_latm \
|
||||||
|
--enable-parser=flac \
|
||||||
|
--enable-parser=h264 \
|
||||||
|
--enable-parser=hevc \
|
||||||
|
--enable-parser=mpeg4video \
|
||||||
|
--enable-parser=mpegaudio \
|
||||||
|
--enable-parser=opus \
|
||||||
|
--enable-parser=vorbis \
|
||||||
|
--enable-demuxer=aac \
|
||||||
|
--enable-demuxer=flac \
|
||||||
|
--enable-demuxer=gif \
|
||||||
|
--enable-demuxer=h264 \
|
||||||
|
--enable-demuxer=hevc \
|
||||||
|
--enable-demuxer=m4v \
|
||||||
|
--enable-demuxer=mov \
|
||||||
|
--enable-demuxer=mp3 \
|
||||||
|
--enable-demuxer=ogg \
|
||||||
|
--enable-demuxer=wav \
|
||||||
|
--enable-muxer=ogg \
|
||||||
|
--enable-muxer=opus
|
||||||
|
|
||||||
|
make -j$(nproc)
|
||||||
|
sudo make DESTDIR="$LibrariesPath/ffmpeg-cache" install
|
||||||
|
cd ..
|
||||||
|
rm -rf ffmpeg
|
||||||
|
- name: FFmpeg install.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
sudo cp -R ffmpeg-cache/. /
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
|
- name: OpenAL Soft.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b openal-soft-1.20.1 --depth=1 $GIT/kcat/openal-soft.git
|
||||||
|
cd openal-soft/build
|
||||||
|
cmake .. \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DALSOFT_EXAMPLES=OFF \
|
||||||
|
-DALSOFT_TESTS=OFF \
|
||||||
|
-DALSOFT_UTILS=OFF \
|
||||||
|
-DALSOFT_CONFIG=OFF
|
||||||
|
|
||||||
|
cmake --build .
|
||||||
|
sudo cmake --install .
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
|
cd -
|
||||||
|
rm -rf openal-soft
|
||||||
|
|
||||||
- name: Hunspell.
|
- name: Hunspell.
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -351,9 +428,10 @@ jobs:
|
||||||
git clone -b v1.7.0 --depth=1 $GIT/hunspell/hunspell.git
|
git clone -b v1.7.0 --depth=1 $GIT/hunspell/hunspell.git
|
||||||
cd hunspell
|
cd hunspell
|
||||||
autoreconf -vfi
|
autoreconf -vfi
|
||||||
./configure --prefix=/usr
|
./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf hunspell
|
rm -rf hunspell
|
||||||
|
|
||||||
|
|
@ -366,6 +444,7 @@ jobs:
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf libxkbcommon
|
rm -rf libxkbcommon
|
||||||
|
|
||||||
|
|
@ -378,21 +457,22 @@ jobs:
|
||||||
./autogen.sh --disable-documentation --disable-dtd-validation
|
./autogen.sh --disable-documentation --disable-dtd-validation
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make install
|
sudo make install
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf wayland
|
rm -rf wayland
|
||||||
|
|
||||||
- name: Qt 5.12.5 cache.
|
- name: Qt 5.12.8 cache.
|
||||||
id: cache-qt
|
id: cache-qt
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/qt-cache
|
path: ${{ env.LibrariesPath }}/qt-cache
|
||||||
key: ${{ runner.OS }}-qt-${{ env.CACHE_KEY }}-${{ hashFiles('**/qtbase_5_12_5.diff') }}
|
key: ${{ runner.OS }}-qt-${{ env.CACHE_KEY }}-${{ hashFiles('**/qtbase_5_12_8_appimage.diff') }}
|
||||||
- name: Qt 5.12.5 build.
|
- name: Qt 5.12.8 build.
|
||||||
if: steps.cache-qt.outputs.cache-hit != 'true'
|
if: steps.cache-qt.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
|
|
||||||
git clone -b v5.12.5 --depth=1 git://code.qt.io/qt/qt5.git qt_${QT}
|
git clone -b v5.12.8 --depth=1 git://code.qt.io/qt/qt5.git qt_${QT}
|
||||||
cd qt_${QT}
|
cd qt_${QT}
|
||||||
perl init-repository --module-subset=qtbase,qtwayland,qtimageformats,qtsvg
|
perl init-repository --module-subset=qtbase,qtwayland,qtimageformats,qtsvg
|
||||||
git submodule update qtbase qtwayland qtimageformats qtsvg
|
git submodule update qtbase qtwayland qtimageformats qtsvg
|
||||||
|
|
@ -400,7 +480,7 @@ jobs:
|
||||||
git apply ../../../$REPO_NAME/Telegram/Patches/qtbase_${QT}_appimage.diff
|
git apply ../../../$REPO_NAME/Telegram/Patches/qtbase_${QT}_appimage.diff
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
./configure -prefix /usr \
|
./configure -prefix /usr/local \
|
||||||
-release \
|
-release \
|
||||||
-opensource \
|
-opensource \
|
||||||
-confirm-license \
|
-confirm-license \
|
||||||
|
|
@ -410,10 +490,8 @@ jobs:
|
||||||
-qt-harfbuzz \
|
-qt-harfbuzz \
|
||||||
-qt-pcre \
|
-qt-pcre \
|
||||||
-qt-xcb \
|
-qt-xcb \
|
||||||
-system-freetype \
|
|
||||||
-fontconfig \
|
|
||||||
-dbus-linked \
|
|
||||||
-openssl-linked \
|
-openssl-linked \
|
||||||
|
OPENSSL_LIBS="-L/usr/local/lib -lssl -lcrypto" \
|
||||||
-nomake examples \
|
-nomake examples \
|
||||||
-nomake tests
|
-nomake tests
|
||||||
|
|
||||||
|
|
@ -421,24 +499,40 @@ jobs:
|
||||||
sudo make INSTALL_ROOT="$LibrariesPath/qt-cache" install
|
sudo make INSTALL_ROOT="$LibrariesPath/qt-cache" install
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf qt_${QT}
|
rm -rf qt_${QT}
|
||||||
- name: Qt 5.12.5 install.
|
- name: Qt 5.12.8 install.
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
sudo cp -R qt-cache/. /
|
sudo cp -R qt-cache/. /
|
||||||
|
sudo ldconfig
|
||||||
|
|
||||||
- name: Qtstyleplugins.
|
- name: Qt Style Plugins.
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
|
|
||||||
git clone --depth=1 git://code.qt.io/qt/qtstyleplugins.git
|
git clone --depth=1 git://code.qt.io/qt/qtstyleplugins.git
|
||||||
cd qtstyleplugins
|
cd qtstyleplugins
|
||||||
qmake PREFIX='/usr'
|
git apply ../../$REPO_NAME/Telegram/Patches/qtstyleplugins.diff
|
||||||
|
qmake
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf qtstyleplugins
|
rm -rf qtstyleplugins
|
||||||
|
|
||||||
- name: Libdbusmenu-qt.
|
- name: Fcitx Qt5.
|
||||||
|
run: |
|
||||||
|
cd $LibrariesPath
|
||||||
|
|
||||||
|
git clone -b 1.2.4 --depth=1 $GIT/fcitx/fcitx-qt5.git
|
||||||
|
cd fcitx-qt5
|
||||||
|
cmake . \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DENABLE_LIBRARY=OFF
|
||||||
|
cmake --build .
|
||||||
|
sudo install -D platforminputcontext/libfcitxplatforminputcontextplugin.so /usr/local/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
|
||||||
|
cd ..
|
||||||
|
rm -rf fcitx-qt5
|
||||||
|
|
||||||
|
- name: LibDBusMenu Qt.
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
|
|
@ -446,12 +540,11 @@ jobs:
|
||||||
git clone -b 0.9.3+16.04.20160218-0ubuntu1 --depth=1 $GIT/unity8-team/libdbusmenu-qt.git
|
git clone -b 0.9.3+16.04.20160218-0ubuntu1 --depth=1 $GIT/unity8-team/libdbusmenu-qt.git
|
||||||
cd libdbusmenu-qt
|
cd libdbusmenu-qt
|
||||||
cmake . \
|
cmake . \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DWITH_DOC=OFF
|
-DWITH_DOC=OFF
|
||||||
|
|
||||||
cmake --build .
|
cmake --build .
|
||||||
cmake --install .
|
sudo cmake --install .
|
||||||
|
sudo ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf libdbusmenu-qt
|
rm -rf libdbusmenu-qt
|
||||||
|
|
||||||
|
|
@ -461,13 +554,11 @@ jobs:
|
||||||
API_ID: ${{ secrets.API_ID }}
|
API_ID: ${{ secrets.API_ID }}
|
||||||
API_HASH: ${{ secrets.API_HASH }}
|
API_HASH: ${{ secrets.API_HASH }}
|
||||||
run: |
|
run: |
|
||||||
cd $REPO_NAME
|
cd $REPO_NAME/Telegram
|
||||||
|
|
||||||
cmake . \
|
./configure.sh \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DTDESKTOP_API_TEST=ON \
|
||||||
-DTDESKTOP_API_ID=${API_ID} \
|
|
||||||
-DTDESKTOP_API_HASH=${API_HASH} \
|
|
||||||
-DDESKTOP_APP_USE_PACKAGED_FONTS=OFF \
|
-DDESKTOP_APP_USE_PACKAGED_FONTS=OFF \
|
||||||
-DDESKTOP_APP_USE_PACKAGED_GSL=OFF \
|
-DDESKTOP_APP_USE_PACKAGED_GSL=OFF \
|
||||||
-DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF \
|
-DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF \
|
||||||
|
|
@ -475,14 +566,9 @@ jobs:
|
||||||
-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF \
|
-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF \
|
||||||
-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
|
-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
|
||||||
|
|
||||||
|
cd ../out/Release
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
DESTDIR=../../AppDir cmake --install .
|
||||||
mkdir AppDir
|
|
||||||
DESTDIR=AppDir cmake --install .
|
|
||||||
|
|
||||||
- name: Update linker cache.
|
|
||||||
if: env.ONLY_CACHE == 'false'
|
|
||||||
run: sudo ldconfig
|
|
||||||
|
|
||||||
- name: AppImageKit-checkrt build.
|
- name: AppImageKit-checkrt build.
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,32 @@ index 266faca0ed..cf9dafb6d8 100644
|
||||||
void *poolFrame = nullptr;
|
void *poolFrame = nullptr;
|
||||||
if (__builtin_available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *)) {
|
if (__builtin_available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *)) {
|
||||||
void *frame;
|
void *frame;
|
||||||
|
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
|
||||||
|
index 5014878bd2..0e05e0f5b9 100644
|
||||||
|
--- a/src/gui/kernel/qguiapplication.cpp
|
||||||
|
+++ b/src/gui/kernel/qguiapplication.cpp
|
||||||
|
@@ -50,6 +50,7 @@
|
||||||
|
#include <qpa/qplatformnativeinterface.h>
|
||||||
|
#include <qpa/qplatformtheme.h>
|
||||||
|
#include <qpa/qplatformintegration.h>
|
||||||
|
+#include <qpa/qplatformservices.h>
|
||||||
|
|
||||||
|
#include <QtCore/QAbstractEventDispatcher>
|
||||||
|
#include <QtCore/QStandardPaths>
|
||||||
|
@@ -268,7 +269,12 @@ static void initThemeHints()
|
||||||
|
static bool checkNeedPortalSupport()
|
||||||
|
{
|
||||||
|
#if QT_CONFIG(dbus)
|
||||||
|
- return !QStandardPaths::locate(QStandardPaths::RuntimeLocation, QLatin1String("flatpak-info")).isEmpty() || qEnvironmentVariableIsSet("SNAP");
|
||||||
|
+ bool neededByDesktopEnvironment = false;
|
||||||
|
+ if (QGuiApplication::desktopSettingsAware()) {
|
||||||
|
+ const QByteArray desktopEnvironment = QGuiApplicationPrivate::platformIntegration()->services()->desktopEnvironment();
|
||||||
|
+ neededByDesktopEnvironment = (desktopEnvironment == "KDE");
|
||||||
|
+ }
|
||||||
|
+ return !QStandardPaths::locate(QStandardPaths::RuntimeLocation, QLatin1String("flatpak-info")).isEmpty() || qEnvironmentVariableIsSet("SNAP") || neededByDesktopEnvironment;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif // QT_CONFIG(dbus)
|
||||||
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
|
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
|
||||||
index 48060a2c37..fff3271ec9 100644
|
index 48060a2c37..fff3271ec9 100644
|
||||||
--- a/src/gui/kernel/qstylehints.cpp
|
--- a/src/gui/kernel/qstylehints.cpp
|
||||||
|
|
@ -882,6 +908,115 @@ index ce67e46df3..a60edc151f 100644
|
||||||
void destroyWindow();
|
void destroyWindow();
|
||||||
inline bool isDropSiteEnabled() const { return m_dropTarget != 0; }
|
inline bool isDropSiteEnabled() const { return m_dropTarget != 0; }
|
||||||
void setDropSiteEnabled(bool enabled);
|
void setDropSiteEnabled(bool enabled);
|
||||||
|
diff --git a/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp b/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp
|
||||||
|
index c64a02fa0c..8207762022 100644
|
||||||
|
--- a/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp
|
||||||
|
+++ b/src/plugins/platformthemes/gtk3/qgtk3dialoghelpers.cpp
|
||||||
|
@@ -45,6 +45,7 @@
|
||||||
|
#include <qcolor.h>
|
||||||
|
#include <qdebug.h>
|
||||||
|
#include <qfont.h>
|
||||||
|
+#include <qfileinfo.h>
|
||||||
|
|
||||||
|
#include <private/qguiapplication_p.h>
|
||||||
|
#include <qpa/qplatformfontdatabase.h>
|
||||||
|
@@ -57,6 +58,16 @@
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
+// GTK file chooser image preview: thanks to Chromium
|
||||||
|
+
|
||||||
|
+// The size of the preview we display for selected image files. We set height
|
||||||
|
+// larger than width because generally there is more free space vertically
|
||||||
|
+// than horiztonally (setting the preview image will alway expand the width of
|
||||||
|
+// the dialog, but usually not the height). The image's aspect ratio will always
|
||||||
|
+// be preserved.
|
||||||
|
+#define PREVIEW_WIDTH 256
|
||||||
|
+#define PREVIEW_HEIGHT 512
|
||||||
|
+
|
||||||
|
class QGtk3Dialog : public QWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
@@ -77,18 +88,24 @@ Q_SIGNALS:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
static void onResponse(QGtk3Dialog *dialog, int response);
|
||||||
|
+ static void onUpdatePreview(QGtk3Dialog *dialog);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onParentWindowDestroyed();
|
||||||
|
|
||||||
|
private:
|
||||||
|
GtkWidget *gtkWidget;
|
||||||
|
+ GtkWidget *previewWidget;
|
||||||
|
};
|
||||||
|
|
||||||
|
QGtk3Dialog::QGtk3Dialog(GtkWidget *gtkWidget) : gtkWidget(gtkWidget)
|
||||||
|
{
|
||||||
|
g_signal_connect_swapped(G_OBJECT(gtkWidget), "response", G_CALLBACK(onResponse), this);
|
||||||
|
g_signal_connect(G_OBJECT(gtkWidget), "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), NULL);
|
||||||
|
+
|
||||||
|
+ previewWidget = gtk_image_new();
|
||||||
|
+ g_signal_connect_swapped(G_OBJECT(gtkWidget), "update-preview", G_CALLBACK(onUpdatePreview), this);
|
||||||
|
+ gtk_file_chooser_set_preview_widget(GTK_FILE_CHOOSER(gtkWidget), previewWidget);
|
||||||
|
}
|
||||||
|
|
||||||
|
QGtk3Dialog::~QGtk3Dialog()
|
||||||
|
@@ -162,6 +179,32 @@ void QGtk3Dialog::onResponse(QGtk3Dialog *dialog, int response)
|
||||||
|
emit dialog->reject();
|
||||||
|
}
|
||||||
|
|
||||||
|
+void QGtk3Dialog::onUpdatePreview(QGtk3Dialog *dialog) {
|
||||||
|
+ gchar *filename = gtk_file_chooser_get_preview_filename(GTK_FILE_CHOOSER(dialog->gtkWidget));
|
||||||
|
+ if (!filename) {
|
||||||
|
+ gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(dialog->gtkWidget), false);
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ // Don't attempt to open anything which isn't a regular file. If a named pipe,
|
||||||
|
+ // this may hang. See https://crbug.com/534754.
|
||||||
|
+ QFileInfo fileinfo(filename);
|
||||||
|
+ if (!fileinfo.exists() || !fileinfo.isFile()) {
|
||||||
|
+ g_free(filename);
|
||||||
|
+ gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(dialog->gtkWidget), false);
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ // This will preserve the image's aspect ratio.
|
||||||
|
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file_at_size(filename, PREVIEW_WIDTH, PREVIEW_HEIGHT, 0);
|
||||||
|
+ g_free(filename);
|
||||||
|
+ if (pixbuf) {
|
||||||
|
+ gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->previewWidget), pixbuf);
|
||||||
|
+ g_object_unref(pixbuf);
|
||||||
|
+ }
|
||||||
|
+ gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(dialog->gtkWidget), pixbuf ? true : false);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void QGtk3Dialog::onParentWindowDestroyed()
|
||||||
|
{
|
||||||
|
// The QGtk3*DialogHelper classes own this object. Make sure the parent doesn't delete it.
|
||||||
|
diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp
|
||||||
|
index 077955eb4e..5c8a3dddf7 100644
|
||||||
|
--- a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp
|
||||||
|
+++ b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp
|
||||||
|
@@ -153,7 +153,7 @@ bool QGtk3Theme::usePlatformNativeDialog(DialogType type) const
|
||||||
|
case ColorDialog:
|
||||||
|
return true;
|
||||||
|
case FileDialog:
|
||||||
|
- return useNativeFileDialog();
|
||||||
|
+ return true;
|
||||||
|
case FontDialog:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
@@ -167,8 +167,6 @@ QPlatformDialogHelper *QGtk3Theme::createPlatformDialogHelper(DialogType type) c
|
||||||
|
case ColorDialog:
|
||||||
|
return new QGtk3ColorDialogHelper;
|
||||||
|
case FileDialog:
|
||||||
|
- if (!useNativeFileDialog())
|
||||||
|
- return nullptr;
|
||||||
|
return new QGtk3FileDialogHelper;
|
||||||
|
case FontDialog:
|
||||||
|
return new QGtk3FontDialogHelper;
|
||||||
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
|
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
|
||||||
index bf339ca5c5..4cdf9189ad 100644
|
index bf339ca5c5..4cdf9189ad 100644
|
||||||
--- a/src/widgets/kernel/qwidget.cpp
|
--- a/src/widgets/kernel/qwidget.cpp
|
||||||
87
Telegram/Patches/qtstyleplugins.diff
Normal file
87
Telegram/Patches/qtstyleplugins.diff
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
diff --git a/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp b/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
|
||||||
|
index 62e5dd2..3e609f7 100644
|
||||||
|
--- a/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
|
||||||
|
+++ b/src/plugins/platformthemes/gtk2/qgtk2dialoghelpers.cpp
|
||||||
|
@@ -38,6 +38,7 @@
|
||||||
|
#include <qcolor.h>
|
||||||
|
#include <qdebug.h>
|
||||||
|
#include <qfont.h>
|
||||||
|
+#include <qfileinfo.h>
|
||||||
|
|
||||||
|
#include <private/qguiapplication_p.h>
|
||||||
|
#include <qpa/qplatformfontdatabase.h>
|
||||||
|
@@ -50,6 +51,16 @@
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
+// GTK file chooser image preview: thanks to Chromium
|
||||||
|
+
|
||||||
|
+// The size of the preview we display for selected image files. We set height
|
||||||
|
+// larger than width because generally there is more free space vertically
|
||||||
|
+// than horiztonally (setting the preview image will alway expand the width of
|
||||||
|
+// the dialog, but usually not the height). The image's aspect ratio will always
|
||||||
|
+// be preserved.
|
||||||
|
+#define PREVIEW_WIDTH 256
|
||||||
|
+#define PREVIEW_HEIGHT 512
|
||||||
|
+
|
||||||
|
class QGtk2Dialog : public QWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
@@ -70,18 +81,24 @@ Q_SIGNALS:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
static void onResponse(QGtk2Dialog *dialog, int response);
|
||||||
|
+ static void onUpdatePreview(QGtk2Dialog *dialog);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void onParentWindowDestroyed();
|
||||||
|
|
||||||
|
private:
|
||||||
|
GtkWidget *gtkWidget;
|
||||||
|
+ GtkWidget *previewWidget;
|
||||||
|
};
|
||||||
|
|
||||||
|
QGtk2Dialog::QGtk2Dialog(GtkWidget *gtkWidget) : gtkWidget(gtkWidget)
|
||||||
|
{
|
||||||
|
g_signal_connect_swapped(G_OBJECT(gtkWidget), "response", G_CALLBACK(onResponse), this);
|
||||||
|
g_signal_connect(G_OBJECT(gtkWidget), "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), NULL);
|
||||||
|
+
|
||||||
|
+ previewWidget = gtk_image_new();
|
||||||
|
+ g_signal_connect_swapped(G_OBJECT(gtkWidget), "update-preview", G_CALLBACK(onUpdatePreview), this);
|
||||||
|
+ gtk_file_chooser_set_preview_widget(GTK_FILE_CHOOSER(gtkWidget), previewWidget);
|
||||||
|
}
|
||||||
|
|
||||||
|
QGtk2Dialog::~QGtk2Dialog()
|
||||||
|
@@ -151,6 +168,32 @@ void QGtk2Dialog::onResponse(QGtk2Dialog *dialog, int response)
|
||||||
|
emit dialog->reject();
|
||||||
|
}
|
||||||
|
|
||||||
|
+void QGtk2Dialog::onUpdatePreview(QGtk2Dialog *dialog) {
|
||||||
|
+ gchar *filename = gtk_file_chooser_get_preview_filename(GTK_FILE_CHOOSER(dialog->gtkWidget));
|
||||||
|
+ if (!filename) {
|
||||||
|
+ gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(dialog->gtkWidget), false);
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ // Don't attempt to open anything which isn't a regular file. If a named pipe,
|
||||||
|
+ // this may hang. See https://crbug.com/534754.
|
||||||
|
+ QFileInfo fileinfo(filename);
|
||||||
|
+ if (!fileinfo.exists() || !fileinfo.isFile()) {
|
||||||
|
+ g_free(filename);
|
||||||
|
+ gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(dialog->gtkWidget), false);
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ // This will preserve the image's aspect ratio.
|
||||||
|
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file_at_size(filename, PREVIEW_WIDTH, PREVIEW_HEIGHT, 0);
|
||||||
|
+ g_free(filename);
|
||||||
|
+ if (pixbuf) {
|
||||||
|
+ gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->previewWidget), pixbuf);
|
||||||
|
+ g_object_unref(pixbuf);
|
||||||
|
+ }
|
||||||
|
+ gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(dialog->gtkWidget), pixbuf ? true : false);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void QGtk2Dialog::onParentWindowDestroyed()
|
||||||
|
{
|
||||||
|
// The QGtk2*DialogHelper classes own this object. Make sure the parent doesn't delete it.
|
||||||
Loading…
Add table
Reference in a new issue