From b3fc811af09c437255e995a87f8d82101cdbcf85 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Fri, 31 May 2024 07:35:05 +0800 Subject: [PATCH] Fix bug Bump dependency version in docker image --- Dockerfile | 16 ++++++++-------- tasks/export_zip.ts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48fdd15..04f1117 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,9 +21,9 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* RUN cd ~ && \ - curl -L "https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n6.1.1.tar.gz" -o ffmpeg.tar.gz && \ + curl -L "https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n7.0.1.tar.gz" -o ffmpeg.tar.gz && \ tar -xzvf ffmpeg.tar.gz && \ - cd FFmpeg-n6.1.1 && \ + cd FFmpeg-n7.0.1 && \ ./configure --enable-pic --prefix=/clib --enable-shared --disable-static \ --enable-gpl --enable-version3 --disable-doc --disable-ffplay \ --disable-network --disable-autodetect --enable-zlib \ @@ -36,12 +36,12 @@ RUN cd ~ && \ --disable-protocols --enable-protocol=async,concat,concatf,data,fd,file,md5,pipe,subfile \ --disable-devices --disable-filters --enable-filter=scale && \ make -j$(grep -c ^processor /proc/cpuinfo) && make install && \ - cd ~ && rm -rf FFmpeg-n6.1.1 ffmpeg.tar.gz + cd ~ && rm -rf FFmpeg-n7.0.1 ffmpeg.tar.gz RUN cd ~ && \ - curl -L "https://github.com/curl/curl/releases/download/curl-8_5_0/curl-8.5.0.tar.gz" -o curl-8.5.0.tar.gz && \ - tar -xzvf curl-8.5.0.tar.gz && \ - cd curl-8.5.0 && \ + curl -L "https://github.com/curl/curl/releases/download/curl-8_8_0/curl-8.8.0.tar.gz" -o curl-8.8.0.tar.gz && \ + tar -xzvf curl-8.8.0.tar.gz && \ + cd curl-8.8.0 && \ mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE=Release -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_SRP=ON \ -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_BASIC_AUTH=ON -DCURL_DISABLE_BEARER_AUTH=ON \ @@ -55,9 +55,9 @@ RUN cd ~ && \ -DCURL_DISABLE_PROXY=ON -DCURL_DISABLE_RTSP=ON -DCURL_DISABLE_SMB=ON \ -DCURL_DISABLE_SMTP=ON -DCURL_DISABLE_TELNET=ON -DCURL_DISABLE_TFTP=ON \ -DUSE_MANUAL=OFF -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=ON -DCURL_USE_LIBPSL=OFF \ - -DCURL_USE_LIBSSH2=OFF -DCMAKE_INSTALL_PREFIX=/clib ../ && \ + -DCURL_USE_LIBSSH2=OFF -DCMAKE_INSTALL_PREFIX=/clib -DBUILD_TESTING=OFF ../ && \ make -j$(grep -c ^processor /proc/cpuinfo) && make install && \ - cd ~ && rm -rf curl-8.5.0 curl-8.5.0.tar.gz + cd ~ && rm -rf curl-8.8.0 curl-8.8.0.tar.gz RUN cd ~ && \ curl -L "https://www.sqlite.org/snapshot/sqlite-snapshot-202401231504.tar.gz" -o sqlite-snapshot-202401231504.tar.gz && \ diff --git a/tasks/export_zip.ts b/tasks/export_zip.ts index 1d116ea..7c68cec 100644 --- a/tasks/export_zip.ts +++ b/tasks/export_zip.ts @@ -47,7 +47,7 @@ export async function export_zip( }; sendEvent(); const title = (jpn_title && g.title_jpn) ? g.title_jpn : g.title; - const output = ecfg.output === undefined + const output = !ecfg.output ? join(cfg.base, filterFilename(title + ".zip")) : ecfg.output; const maxLength = ecfg.max_length || 0;