From 6ab99506ade15e5be8aaabbab5327cf2c9f4a88c Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Fri, 30 Jan 2026 20:59:46 -0300 Subject: [PATCH] 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 --- appveyor.yml | 17 ++++++++++------- appveyor/linux/before_build.sh | 5 ----- appveyor/macos/before_build.sh | 7 ------- 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 91b66336a..f0ce29296 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/appveyor/linux/before_build.sh b/appveyor/linux/before_build.sh index 7ab5dad84..b4266dcd9 100644 --- a/appveyor/linux/before_build.sh +++ b/appveyor/linux/before_build.sh @@ -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 diff --git a/appveyor/macos/before_build.sh b/appveyor/macos/before_build.sh index 45fb70c9f..207fcf051 100755 --- a/appveyor/macos/before_build.sh +++ b/appveyor/macos/before_build.sh @@ -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