mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 12:34:00 +03:00
Add build step for static aria2c binary in Linux package workflow
This commit is contained in:
@@ -121,6 +121,20 @@ jobs:
|
|||||||
autoconf automake libtool gettext autopoint \
|
autoconf automake libtool gettext autopoint \
|
||||||
libssl-dev libxml2-dev zlib1g-dev libsqlite3-dev
|
libssl-dev libxml2-dev zlib1g-dev libsqlite3-dev
|
||||||
|
|
||||||
|
- name: Build aria2c Linux static
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
mkdir -p dist/linux/aria2c_build
|
||||||
|
cd dist/linux/aria2c_build
|
||||||
|
wget https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.gz
|
||||||
|
tar -xzf aria2-1.37.0.tar.gz
|
||||||
|
cd aria2-1.37.0
|
||||||
|
autoreconf -i
|
||||||
|
./configure ARIA2_STATIC=yes --with-openssl
|
||||||
|
make -j$(nproc)
|
||||||
|
mkdir -p dist/linux/bin
|
||||||
|
cp src/aria2c dist/linux/bin/aria2c
|
||||||
|
|
||||||
- name: Prepare Linux package
|
- name: Prepare Linux package
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
@@ -141,18 +155,10 @@ jobs:
|
|||||||
mv dist/linux/ffmpeg_temp/ffmpeg dist/linux/bin/ffmpeg
|
mv dist/linux/ffmpeg_temp/ffmpeg dist/linux/bin/ffmpeg
|
||||||
chmod +x dist/linux/bin/ffmpeg
|
chmod +x dist/linux/bin/ffmpeg
|
||||||
|
|
||||||
# aria2c Linux static
|
# Copy built aria2c binary if present
|
||||||
mkdir -p dist/linux/aria2c_build
|
if [ -f dist/linux/bin/aria2c ]; then
|
||||||
cd dist/linux/aria2c_build
|
chmod +x dist/linux/bin/aria2c
|
||||||
wget https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.gz
|
fi
|
||||||
tar -xzf aria2-1.37.0.tar.gz
|
|
||||||
cd aria2-1.37.0
|
|
||||||
autoreconf -i
|
|
||||||
./configure ARIA2_STATIC=yes --with-openssl
|
|
||||||
make -j$(nproc)
|
|
||||||
|
|
||||||
cp src/aria2c ../../bin/aria2c
|
|
||||||
chmod +x ../../bin/aria2c
|
|
||||||
|
|
||||||
# Remove temp files and downloaded archives before zipping
|
# Remove temp files and downloaded archives before zipping
|
||||||
rm -rf dist/linux/ffmpeg_temp dist/linux/aria2c_build dist/linux/ffmpeg.tar.xz dist/linux/aria2c_build/aria2-1.37.0.tar.gz
|
rm -rf dist/linux/ffmpeg_temp dist/linux/aria2c_build dist/linux/ffmpeg.tar.xz dist/linux/aria2c_build/aria2-1.37.0.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user