Add win build for CI

This commit is contained in:
2022-10-20 02:35:07 +00:00
committed by GitHub
parent ef88c44361
commit 6fca4b03f6
9 changed files with 261 additions and 13 deletions

View 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