Skip to content

Commit

Permalink
新增版本显示 将当前版本设定为1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CMaicss committed Jul 2, 2022
1 parent 31c4e90 commit 81eb1cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ cmake_minimum_required(VERSION 3.5.0)
project(gamux-installer)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsized-deallocation")

add_definitions(-DVERSION="1.0.0")
add_subdirectory(src)
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
using namespace std;
int main(int argc, char *argv[]) {
new QApplication(argc,argv);

cout<<"Installer version: "<<VERSION<<endl;

if(!Task::task.loadConfigFile(argv[1])){
return 1;
}
Expand Down

0 comments on commit 81eb1cd

Please sign in to comment.