From a4dbfa69d3076fd1b177a8cddb68ee9dfd0d7039 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Sat, 2 May 2020 14:08:50 -0300 Subject: [PATCH] AppVeyor - Upgrade to Python 3.7 and remove console --- appveyor.yml | 18 ++++++++++-------- .../win32/GC3.6-Dev-Master-W64-QT5.14.2.nsi | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 4104a48fc..fad9ae205 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -77,18 +77,20 @@ install: - R --version - echo DEFINES+=GC_WANT_R >> src\gcconfig.pri -# Get SIP and add Python to config -- c:\python36-x64\python --version +# Get SIP and and install on Python +- c:\python37-x64\python --version - if not exist sip-4.19.8.zip appveyor DownloadFile "https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.zip" - 7z x sip-4.19.8.zip - cd sip-4.19.8 -- c:\python36-x64\python configure.py +- c:\python37-x64\python configure.py - jom -j4 - nmake install - cd .. + +# Add Python (avoiding colision between GC Context.h and Python context.h) - echo DEFINES+=GC_WANT_PYTHON >> src\gcconfig.pri -- echo PYTHONINCLUDES=-I\"c:\python36-x64\include\" >> src\gcconfig.pri -- echo PYTHONLIBS=-L\"c:\python36-x64\libs\" -lpython36 >> src\gcconfig.pri +- echo PYTHONINCLUDES=-ICore -I\"c:\python37-x64\include\" >> src\gcconfig.pri +- echo PYTHONLIBS=-L\"c:\python37-x64\libs\" -lpython37 >> src\gcconfig.pri before_build: # Enable CloudDB @@ -98,7 +100,7 @@ before_build: - echo DEFINES+=GC_WANT_ROBOT >> src\gcconfig.pri # Add debug console -- echo CONFIG+=console >> src\gcconfig.pri +#- echo CONFIG+=console >> src\gcconfig.pri # Patch Secrets.h - ps: (Get-Content src\Core\Secrets.h) -replace '__GC_GOOGLE_CALENDAR_CLIENT_SECRET__', $env:GC_GOOGLE_CALENDAR_CLIENT_SECRET | Set-Content src\Core\Secrets.h @@ -136,8 +138,8 @@ after_build: - xcopy /s /i /e /q c:\libs\10_Precompiled_DLL\VLC\win64\plugins plugins - copy c:\OpenSSL-v111-Win64\bin\lib*.dll - copy c:\OpenSSL-v111-Win64\license.txt "OpenSSL License.txt" -- copy c:\python36-x64\python36.dll -- copy c:\python36-x64\LICENSE.txt "PYTHON LICENSE.txt" +- copy c:\python37-x64\python37.dll +- copy c:\python37-x64\LICENSE.txt "PYTHON LICENSE.txt" # ReadMe, license and icon files - copy ..\Resources\win32\ReadMe.txt diff --git a/src/Resources/win32/GC3.6-Dev-Master-W64-QT5.14.2.nsi b/src/Resources/win32/GC3.6-Dev-Master-W64-QT5.14.2.nsi index ab95e6894..c413f7cac 100644 --- a/src/Resources/win32/GC3.6-Dev-Master-W64-QT5.14.2.nsi +++ b/src/Resources/win32/GC3.6-Dev-Master-W64-QT5.14.2.nsi @@ -487,7 +487,7 @@ Section "Golden Cheetah (required)" Sec1 File "printsupport\windowsprintersupport.dll" SetOutPath "$INSTDIR" File "PYTHON LICENSE.txt" - File "python36.dll" + File "python37.dll" SetOutPath "$INSTDIR" File "Qt5Bluetooth.dll" File "Qt5Charts.dll" @@ -1017,7 +1017,7 @@ Section Uninstall Delete "$INSTDIR\position\qtposition_winrt.dll" Delete "$INSTDIR\printsupport\windowsprintersupport.dll" Delete "$INSTDIR\PYTHON LICENSE.txt" - Delete "$INSTDIR\python36.dll" + Delete "$INSTDIR\python37.dll" Delete "$INSTDIR\Qt5Bluetooth.dll" Delete "$INSTDIR\Qt5Charts.dll" Delete "$INSTDIR\Qt5Concurrent.dll"