mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 12:34:00 +03:00
Refactor Linux package preparation to simplify dependency installation and speed up aria2c build process
This commit is contained in:
@@ -92,10 +92,9 @@ jobs:
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
sudo apt update
|
||||
sudo apt install -y \
|
||||
unzip zip curl wget build-essential pkg-config \
|
||||
autoconf automake libtool gettext autopoint \
|
||||
libssl-dev libxml2-dev zlib1g-dev libsqlite3-dev
|
||||
sudo apt install -y unzip zip curl wget build-essential \
|
||||
pkg-config libssl-dev zlib1g-dev
|
||||
|
||||
|
||||
- name: Extract tag name
|
||||
run: |
|
||||
@@ -124,22 +123,27 @@ jobs:
|
||||
mv "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp/ffmpeg" "$WORKSPACE_ROOT/dist/linux/bin/ffmpeg"
|
||||
chmod +x "$WORKSPACE_ROOT/dist/linux/bin/ffmpeg"
|
||||
|
||||
# aria2c Linux static
|
||||
# aria2c minimal fully static
|
||||
mkdir -p "$WORKSPACE_ROOT/dist/linux/aria2c_build"
|
||||
|
||||
cd "$WORKSPACE_ROOT"
|
||||
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
|
||||
CFLAGS="-Os -s" LDFLAGS="-static" ./configure \
|
||||
--enable-static --disable-shared \
|
||||
--disable-libaria2 --without-ca-bundle \
|
||||
--without-libnettle --without-libgcrypt \
|
||||
--without-libssh2 --without-libexpat \
|
||||
--without-libxml2 --without-libsqlite3 \
|
||||
--with-openssl
|
||||
make -j"$(nproc)"
|
||||
|
||||
strip src/aria2c
|
||||
|
||||
cp src/aria2c "$WORKSPACE_ROOT/dist/linux/bin/aria2c"
|
||||
chmod +x "$WORKSPACE_ROOT/dist/linux/bin/aria2c"
|
||||
|
||||
# Remove temp files and downloaded archives before zipping
|
||||
rm -rf "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp" "$WORKSPACE_ROOT/dist/linux/aria2c_build" "$WORKSPACE_ROOT/dist/linux/ffmpeg.tar.xz" "$WORKSPACE_ROOT/dist/linux/aria2c_build/aria2-1.37.0.tar.gz"
|
||||
# Cleanup
|
||||
rm -rf "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp" "$WORKSPACE_ROOT/dist/linux/aria2c_build" "$WORKSPACE_ROOT/dist/linux/ffmpeg.tar.xz" "$WORKSPACE_ROOT/aria2-1.37.0" "$WORKSPACE_ROOT/aria2-1.37.0.tar.gz"
|
||||
|
||||
# Zip everything
|
||||
cd "$WORKSPACE_ROOT/dist/linux"
|
||||
|
||||
Reference in New Issue
Block a user