Skip to content

Commit

Permalink
chore: 添加一些版本编译信息
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jul 17, 2023
1 parent ff0e49f commit c64a34f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions source/API/MaaAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "Resource/ResourceMgr.h"
#include "Utils/Platform.hpp"

#pragma message("MAA_VERSION: " MAA_VERSION)

MaaString MaaVersion()
{
return MAA_VERSION;
Expand Down
2 changes: 2 additions & 0 deletions source/modules/MaaControlUnit/ControlUnitMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions source/modules/MaaUtils/Logger.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "MaaUtils/Logger.hpp"

#pragma message("MAA_VERSION: " MAA_VERSION)

MAA_NS_BEGIN

Logger& Logger::get_instance()
Expand Down

0 comments on commit c64a34f

Please sign in to comment.