AppVeyor - run lupdate on Windows

For Linux and macOS this was part of before_build.sh
Also remove now unused site-packages from cache section
This commit is contained in:
Alejandro Martinez
2026-01-30 20:59:46 -03:00
parent a36f52760b
commit 6ab99506ad
3 changed files with 10 additions and 19 deletions

View File

@@ -94,7 +94,6 @@ cache:
- qwt -> qwt/qwtconfig.pri.in, appveyor.yml
- srmio -> appveyor.yml
- D2XX
- site-packages
- src\Python\SIP\release\sip_lib.lib -> src\Python\SIP\goldencheetah.sip
- src\Python\SIP\libsip_lib.a -> src\Python\SIP\goldencheetah.sip
@@ -160,9 +159,6 @@ install:
before_build:
# Windows
# Define GC version string, only for tagged builds
- cmd: if %APPVEYOR_REPO_TAG%==true echo DEFINES+=GC_VERSION=VERSION_STRING >> src\gcconfig.pri
# Enable CloudDB
- cmd: echo CloudDB=active >> src\gcconfig.pri
@@ -179,11 +175,18 @@ before_build:
# Avoid conflicts between Windows.h min/max macros and limits.h
- cmd: echo DEFINES+=NOMINMAX >> src\gcconfig.pri
# Linux / macOS
- sh: bash appveyor/$OS_NAME/before_build.sh
# Define GC version string, only for tagged builds
- sh: if $APPVEYOR_REPO_TAG; then echo DEFINES+=GC_VERSION=VERSION_STRING >> src/gcconfig.pri; fi
# For tagged builds, define GC version string
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { Add-Content src/gcconfig.pri "DEFINES += GC_VERSION=VERSION_STRING" }
# Show config.
- ps: Get-Content src/gcconfig.pri
# update translations
- cmd: lupdate src\src.pro
- sh: lupdate src/src.pro
# Patch Secrets.h (Windows / Linux / macOS)
- 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

View File

@@ -40,8 +40,3 @@ sed -i "s|#GSL_LIBS =.*|GSL_LIBS = -lgsl -lgslcblas -lm|" src/gcconfig.pri
# TrainerDay Query API
echo DEFINES += GC_WANT_TRAINERDAY_API >> src/gcconfig.pri
echo DEFINES += GC_TRAINERDAY_API_PAGESIZE=25 >> src/gcconfig.pri
cat src/gcconfig.pri
# update translations
lupdate src/src.pro
exit

View File

@@ -75,10 +75,3 @@ echo DEFINES += GC_TRAINERDAY_API_PAGESIZE=25 >> src/gcconfig.pri
echo "QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 -arch x86_64" >> src/gcconfig.pri
echo "QMAKE_CFLAGS_RELEASE += -mmacosx-version-min=10.7 -arch x86_64" >> src/gcconfig.pri
echo "QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15" >> src/gcconfig.pri
cat src/gcconfig.pri
# update translations
lupdate src/src.pro
exit