diff --git a/.ci/linux.sh b/.ci/linux.sh index bb6314999..0603a0d7a 100755 --- a/.ci/linux.sh +++ b/.ci/linux.sh @@ -20,9 +20,9 @@ cmake .. -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ - "${EXTRA_CMAKE_FLAGS[@]}" \ -DENABLE_QT_TRANSLATION=ON \ - -DUSE_DISCORD_PRESENCE=ON + -DUSE_DISCORD_PRESENCE=ON \ + "${EXTRA_CMAKE_FLAGS[@]}" ninja strip -s bin/Release/* diff --git a/.ci/macos.sh b/.ci/macos.sh index 37d28a5d3..94824f45b 100755 --- a/.ci/macos.sh +++ b/.ci/macos.sh @@ -1,5 +1,9 @@ #!/bin/bash -ex +if [ "$GITHUB_REF_TYPE" == "tag" ]; then + export EXTRA_CMAKE_FLAGS=(-DENABLE_QT_UPDATE_CHECKER=ON) +fi + mkdir build && cd build cmake .. -GNinja \ -DCMAKE_BUILD_TYPE=Release \ @@ -7,7 +11,8 @@ cmake .. -GNinja \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DENABLE_QT_TRANSLATION=ON \ - -DUSE_DISCORD_PRESENCE=ON + -DUSE_DISCORD_PRESENCE=ON \ + "${EXTRA_CMAKE_FLAGS[@]}" ninja ninja bundle mv ./bundle/azahar.app ./bundle/Azahar.app # TODO: Can this be done in CMake? diff --git a/.ci/windows.sh b/.ci/windows.sh index ddcf5867f..d94fd6435 100644 --- a/.ci/windows.sh +++ b/.ci/windows.sh @@ -1,12 +1,18 @@ #!/bin/sh -ex mkdir build && cd build + +if [ "$GITHUB_REF_TYPE" == "tag" ]; then + export EXTRA_CMAKE_FLAGS=(-DENABLE_QT_UPDATE_CHECKER=ON) +fi + cmake .. -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DENABLE_QT_TRANSLATION=ON \ - -DUSE_DISCORD_PRESENCE=ON + -DUSE_DISCORD_PRESENCE=ON \ + "${EXTRA_CMAKE_FLAGS[@]}" ninja ninja bundle strip -s bundle/*.exe