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: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y \
|
sudo apt install -y unzip zip curl wget build-essential \
|
||||||
unzip zip curl wget build-essential pkg-config \
|
pkg-config libssl-dev zlib1g-dev
|
||||||
autoconf automake libtool gettext autopoint \
|
|
||||||
libssl-dev libxml2-dev zlib1g-dev libsqlite3-dev
|
|
||||||
|
|
||||||
- name: Extract tag name
|
- name: Extract tag name
|
||||||
run: |
|
run: |
|
||||||
@@ -124,22 +123,27 @@ jobs:
|
|||||||
mv "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp/ffmpeg" "$WORKSPACE_ROOT/dist/linux/bin/ffmpeg"
|
mv "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp/ffmpeg" "$WORKSPACE_ROOT/dist/linux/bin/ffmpeg"
|
||||||
chmod +x "$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"
|
mkdir -p "$WORKSPACE_ROOT/dist/linux/aria2c_build"
|
||||||
|
|
||||||
cd "$WORKSPACE_ROOT"
|
cd "$WORKSPACE_ROOT"
|
||||||
wget https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.gz
|
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
|
tar -xzf aria2-1.37.0.tar.gz
|
||||||
cd aria2-1.37.0
|
cd aria2-1.37.0
|
||||||
autoreconf -i
|
CFLAGS="-Os -s" LDFLAGS="-static" ./configure \
|
||||||
./configure ARIA2_STATIC=yes --with-openssl
|
--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)"
|
make -j"$(nproc)"
|
||||||
|
strip src/aria2c
|
||||||
|
|
||||||
cp src/aria2c "$WORKSPACE_ROOT/dist/linux/bin/aria2c"
|
cp src/aria2c "$WORKSPACE_ROOT/dist/linux/bin/aria2c"
|
||||||
chmod +x "$WORKSPACE_ROOT/dist/linux/bin/aria2c"
|
chmod +x "$WORKSPACE_ROOT/dist/linux/bin/aria2c"
|
||||||
|
|
||||||
# Remove temp files and downloaded archives before zipping
|
# Cleanup
|
||||||
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"
|
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
|
# Zip everything
|
||||||
cd "$WORKSPACE_ROOT/dist/linux"
|
cd "$WORKSPACE_ROOT/dist/linux"
|
||||||
|
|||||||
Reference in New Issue
Block a user