mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 18:30:34 +08:00
[CI] Added Appveyor CI Config
This commit is contained in:
parent
485e7a68e6
commit
f7855b6c65
@ -8,10 +8,10 @@ branches:
|
||||
install:
|
||||
- set QTDIR=C:\Qt\5.10\mingw53_32
|
||||
- choco install -y InnoSetup
|
||||
- set PATH=%QTDIR%\bin;C:\Qt\Tools\mingw530_32\bin;%PATH%;"C:\Program Files (x86)\Inno Setup 5"
|
||||
- set PATH=%QTDIR%\bin;C:\Qt\Tools\mingw730_32\bin;%PATH%;"C:\Program Files (x86)\Inno Setup 5"
|
||||
|
||||
build_script:
|
||||
- tools\WindowsInstallDependencies.bat
|
||||
- mkdir python37 && xcopy C:\Python37 python37 /E /H /Q
|
||||
- tools\FixPythonWithMinGW.bat
|
||||
- cd src
|
||||
- mkdir build && cd build
|
||||
|
@ -1,9 +1,6 @@
|
||||
|
||||
|
||||
set CURRENT_PATH=%~dp0%
|
||||
|
||||
cd %~dp0\..\python37\libs\
|
||||
|
||||
echo EXPORTS > python37.def
|
||||
nm python37.lib | grep " T _" | sed "s/.* T _//" >> python37.def
|
||||
dlltool --input-def python37.def --dllname python37 --output-lib libpython37_mingw.a
|
||||
cd %CURRENT_PATH%\..\
|
||||
|
@ -2,26 +2,14 @@
|
||||
REM Install Python
|
||||
|
||||
ECHO Downloading Python using wget...
|
||||
wget.exe https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe -O %~dp0\python-3.7.3.exe
|
||||
%~dp0\wget.exe https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe -O %~dp0\python-3.7.3.exe
|
||||
|
||||
REM Get install path
|
||||
CALL :NORMALIZEPATH "..\python37\"
|
||||
CALL :NORMALIZEPATH "\python37\"
|
||||
ECHO INSTALL_PATH=%RETVAL%
|
||||
|
||||
REM Installing Python...
|
||||
python-3.7.3.exe /quiet TargetDir=%RETVAL%
|
||||
|
||||
REM From: https://stackoverflow.com/a/8185270/8364323
|
||||
ECHO Wait for it installing....
|
||||
:LOOP
|
||||
PSLIST python-3.7.3 >nul 2>&1
|
||||
IF ERRORLEVEL 1 (
|
||||
GOTO CONTINUE
|
||||
) ELSE (
|
||||
ECHO Waiting for python finish install.
|
||||
TIMEOUT /T 5
|
||||
GOTO LOOP
|
||||
)
|
||||
start /w "" "%~dp0\python-3.7.3.exe" /quiet TargetDir=%RETVAL%
|
||||
|
||||
:CONTINUE
|
||||
ECHO Python headers and libs are installed!
|
||||
|
Loading…
Reference in New Issue
Block a user