From c64a34fa1ade0d62cac6623cbf79de62800a84bf Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 18 Jul 2023 00:11:37 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=BC=96=E8=AF=91=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 2 +- source/API/MaaAPI.cpp | 2 ++ source/modules/MaaControlUnit/ControlUnitMgr.cpp | 2 ++ source/modules/MaaUtils/Logger.cpp | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e4b0b557..50d1a90af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: - name: Build MAA run: | - MSBUILD MAA.sln /t:rebuild /p:Configuration="Release" /p:Platform="${{ matrix.msbuild_target }}" /m /p:MAA_VERSION="${{ needs.meta.outputs.tag }}" + MSBUILD MAA.sln /t:rebuild /p:MAA_VERSION="${{ needs.meta.outputs.tag }}" /p:Configuration="Release" /p:Platform="${{ matrix.msbuild_target }}" /m - name: Copy docs run: | diff --git a/source/API/MaaAPI.cpp b/source/API/MaaAPI.cpp index ccce0bfda..7226b1657 100644 --- a/source/API/MaaAPI.cpp +++ b/source/API/MaaAPI.cpp @@ -12,6 +12,8 @@ #include "Resource/ResourceMgr.h" #include "Utils/Platform.hpp" +#pragma message("MAA_VERSION: " MAA_VERSION) + MaaString MaaVersion() { return MAA_VERSION; diff --git a/source/modules/MaaControlUnit/ControlUnitMgr.cpp b/source/modules/MaaControlUnit/ControlUnitMgr.cpp index e93f7cb0b..c8d5111db 100644 --- a/source/modules/MaaControlUnit/ControlUnitMgr.cpp +++ b/source/modules/MaaControlUnit/ControlUnitMgr.cpp @@ -18,6 +18,8 @@ #include "Screencap/RawByNetcat.h" #include "Screencap/RawWithGzip.h" +#pragma message("MAA_VERSION: " MAA_VERSION) + MAA_CTRL_UNIT_NS_BEGIN bool ControlUnitMgr::parse(const json::value& config) diff --git a/source/modules/MaaUtils/Logger.cpp b/source/modules/MaaUtils/Logger.cpp index a40664bab..4f6bf3bd6 100644 --- a/source/modules/MaaUtils/Logger.cpp +++ b/source/modules/MaaUtils/Logger.cpp @@ -1,5 +1,7 @@ #include "MaaUtils/Logger.hpp" +#pragma message("MAA_VERSION: " MAA_VERSION) + MAA_NS_BEGIN Logger& Logger::get_instance()