mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
Add win build for CI
This commit is contained in:
23
scripts/download_resource.bat
Normal file
23
scripts/download_resource.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@ECHO OFF
|
||||
SETLOCAL
|
||||
SET DOWNLOAD_RESOURCE_PY=download_resource.py
|
||||
IF NOT EXIST %DOWNLOAD_RESOURCE_PY% (
|
||||
SET DOWNLOAD_RESOURCE_PY=%CD%\download_resource.py
|
||||
IF NOT EXIST %DOWNLOAD_RESOURCE_PY% (
|
||||
IF DEFINED SCRIPTS_DIR (
|
||||
SET DOWNLOAD_RESOURCE_PY=%SCRIPTS_DIR%\download_resource.py
|
||||
)
|
||||
)
|
||||
)
|
||||
IF NOT EXIST %DOWNLOAD_RESOURCE_PY% (
|
||||
EXIT /B 1
|
||||
)
|
||||
python %DOWNLOAD_RESOURCE_PY% %*
|
||||
IF ERRORLEVEL 2 (
|
||||
python -m pip install --upgrade requests
|
||||
python %DOWNLOAD_RESOURCE_PY% %*
|
||||
)
|
||||
IF %ERRORLEVEL% NEQ 0 (
|
||||
EXIT /B %ERRORLEVEL%
|
||||
)
|
||||
ENDLOCAL
|
||||
Reference in New Issue
Block a user