Skip to content

Commit fe7a6c1

Browse files
committed
preprelease: bump version 3.1.0
1 parent b5e5d3b commit fe7a6c1

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

CMakeLists.txt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,7 @@ else()
106106
endif()
107107

108108
# get git version hash
109-
if(EXISTS ${CMAKE_SOURCE_DIR}/.git)
110-
add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/src/gen_version.h
111-
COMMAND echo "#ifndef __VERSION_H__" > ${CMAKE_SOURCE_DIR}/src/gen_version.h
112-
COMMAND echo "#define __VERSION_H__" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h
113-
COMMAND git log -n1 "--format=#define APP_VERSION \"%h_git\"" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h
114-
COMMAND echo "#define MAJOR_VERSION 999" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h
115-
COMMAND echo "#define MINOR_VERSION 0" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h
116-
COMMAND echo "#define PATCH_VERSION 0" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h
117-
COMMAND echo "#endif" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h
118-
DEPENDS .git/HEAD
119-
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
120-
VERBATIM)
121-
else()
122-
file(WRITE ${CMAKE_SOURCE_DIR}/src/gen_version.h "#ifndef __GEN_VERSIONS_H__\n#define __GEN_VERSIONS_H__\n#define APP_VERSION \"3.0.1\"\n#define MAJOR_VERSION 3\n#define MINOR_VERSION 0\n#define PATCH_VERSION 1\n#endif")
123-
endif()
109+
file(WRITE ${CMAKE_SOURCE_DIR}/src/gen_version.h "#ifndef __GEN_VERSIONS_H__\n#define __GEN_VERSIONS_H__\n#define APP_VERSION \"3.1.0\"\n#define MAJOR_VERSION 3\n#define MINOR_VERSION 1\n#define PATCH_VERSION 0\n#endif\n")
124110

125111
#icon and correct libs/subsystem for windows
126112
if(WIN32)
@@ -172,7 +158,7 @@ set(CPACK_PACKAGE_VENDOR "oldsch00l")
172158
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
173159
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
174160
set(CPACK_PACKAGE_VERSION_MAJOR "3")
175-
set(CPACK_PACKAGE_VERSION_MINOR "0")
161+
set(CPACK_PACKAGE_VERSION_MINOR "1")
176162
set(CPACK_PACKAGE_VERSION_PATCH "0")
177163
set(CPACK_PACKAGE_INSTALL_DIRECTORY "SqliteBrowser${CPACK_PACKAGE_VERSION_MAJOR}")
178164
if(WIN32 AND NOT UNIX)

src/gen_version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef __GEN_VERSIONS_H__
2-
#define __GEN_VERISONS_H__
3-
#define APP_VERSION "master_git"
4-
#define MAJOR_VERSION 999
5-
#define MINOR_VERSION 0
2+
#define __GEN_VERSIONS_H__
3+
#define APP_VERSION "3.1.0"
4+
#define MAJOR_VERSION 3
5+
#define MINOR_VERSION 1
66
#define PATCH_VERSION 0
77
#endif

0 commit comments

Comments
 (0)