mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-06 05:49:01 +08:00
Fix patch file
Try to fix openssl build Add expat build for win build
This commit is contained in:
7
.github/workflows/CI.yml
vendored
7
.github/workflows/CI.yml
vendored
@@ -176,7 +176,7 @@ jobs:
|
||||
id: cache_key
|
||||
run: |
|
||||
cd scripts
|
||||
python get_cache_key.py --prefix=win zlib pkgconf exiv2 openssl || exit 1
|
||||
python get_cache_key.py --prefix=win zlib pkgconf expat exiv2 openssl || exit 1
|
||||
- name: Cache
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
@@ -213,6 +213,11 @@ jobs:
|
||||
run: |
|
||||
COPY /Y scripts\build_win_pkgconf.bat || exit 1
|
||||
CALL build_win_pkgconf.bat || exit 1
|
||||
- name: Build expat
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
COPY /Y scripts\build_win_expat.bat || exit 1
|
||||
CALL build_win_expat.bat || exit 1
|
||||
- name: Build exiv2
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
--- zconf.h.orig 2022-04-26 09:20:44 +0000
|
||||
+++ zconf.h 2022-04-26 09:23:39 +0000
|
||||
@@ -474,7 +474,7 @@
|
||||
--- zconf.h.orig 2022-10-20 11:06:04 +0000
|
||||
+++ zconf.h 2022-10-20 11:06:56 +0000
|
||||
@@ -487,7 +487,7 @@
|
||||
#endif
|
||||
#ifndef Z_SOLO
|
||||
# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
|
||||
# if defined(Z_HAVE_UNISTD_H)
|
||||
-# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
|
||||
+//# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
|
||||
# ifdef VMS
|
||||
|
||||
23
scripts/build_win_expat.bat
Normal file
23
scripts/build_win_expat.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@ECHO OFF
|
||||
SETLOCAL
|
||||
SET PREFIX=%CD%\clib
|
||||
SET PKG_CONFIG_DIR=%PREFIX%\lib\pkgconfig
|
||||
IF NOT EXIST cbuild (
|
||||
MD cbuild || EXIT /B 1
|
||||
)
|
||||
CD cbuild || EXIT /B 1
|
||||
git clone --depth 1 "https://github.com/libexpat/libexpat" || EXIT /B %ERRORLEVEL%
|
||||
CD libexpat && CD expat || EXIT /B %ERRORLEVEL%
|
||||
IF NOT EXIST build (
|
||||
MD build || EXIT /B 1
|
||||
)
|
||||
CD build || EXIT /B 1
|
||||
cmake ^
|
||||
-G Ninja ^
|
||||
-DCMAKE_PREFIX_PATH=%PREFIX% ^
|
||||
-DCMAKE_BUILD_TYPE=Release ^
|
||||
-DCMAKE_INSTALL_PREFIX=%PREFIX% ^
|
||||
-DINSTALL_PKGCONFIG_DIR=%PKG_CONFIG_DIR% ^
|
||||
../ || EXIT /B %ERRORLEVEL%
|
||||
ninja && ninja install || ninja && ninja install || EXIT /B %ERRORLEVEL%
|
||||
ENDLOCAL
|
||||
@@ -14,6 +14,9 @@ CALL %DOWNLOAD_RESOURCE% -o "openssl-3.0.5.tar.gz" "https://www.openssl.org/sour
|
||||
tar -xzvf "openssl-3.0.5.tar.gz" || EXIT /B %ERRORLEVEL%
|
||||
CD openssl-3.0.5 || EXIT /B 1
|
||||
perl Configure shared zlib-dynamic --prefix=%PREFIX% --openssldir=%OPENSSLDIR% || EXIT /B %ERRORLEVEL%
|
||||
SET "PATH=%PREFIX%\bin;%PATH%"
|
||||
SET "INCLUDE=%PREFIX%\include;%INCLUDE%"
|
||||
SET "LIB=%PREFIX%\lib;%LIB%"
|
||||
nmake || EXIT /B %ERRORLEVEL%
|
||||
nmake install || EXIT /B %ERRORLEVEL%
|
||||
ENDLOCAL
|
||||
|
||||
@@ -6,7 +6,7 @@ from time import gmtime, time, strftime
|
||||
from typing import List
|
||||
|
||||
|
||||
ALL_FEATURES = ['exiv2', 'ffmpeg', 'libzip', 'openssl', 'pkgconf', 'x264', 'zlib']
|
||||
ALL_FEATURES = ['exiv2', 'expat', 'ffmpeg', 'libzip', 'openssl', 'pkgconf', 'x264', 'zlib']
|
||||
|
||||
def sha256(data) -> str:
|
||||
if isinstance(data, str):
|
||||
|
||||
Reference in New Issue
Block a user