Skip to content

Commit a8f72e8

Browse files
committed
update version numbers to 3.3.0
1 parent 63c338c commit a8f72e8

File tree

3 files changed

+14
-29
lines changed

3 files changed

+14
-29
lines changed

CMakeLists.txt

+9-24
Original file line numberDiff line numberDiff line change
@@ -128,29 +128,14 @@ endif()
128128

129129
set(gv "${CMAKE_SOURCE_DIR}/src/gen_version.h")
130130

131-
# get git version hash
132-
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
133-
add_custom_command(OUTPUT "${gv}"
134-
COMMAND echo "#ifndef GEN_VERSION_H" > "${gv}"
135-
COMMAND echo "#define GEN_VERSION_H" >> "${gv}"
136-
COMMAND git log -n1 "--format=#define APP_VERSION \"%h_git\"" >> "${gv}"
137-
COMMAND echo "#define MAJOR_VERSION 999" >> "${gv}"
138-
COMMAND echo "#define MINOR_VERSION 0" >> "${gv}"
139-
COMMAND echo "#define PATCH_VERSION 0" >> "${gv}"
140-
COMMAND echo "#endif" >> "${gv}"
141-
DEPENDS .git/HEAD
142-
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
143-
VERBATIM)
144-
else()
145-
file(WRITE "${gv}"
146-
"#ifndef GEN_VERSION_H\n"
147-
"#define GEN_VERSION_H\n"
148-
"#define APP_VERSION \"999.0.0\"\n"
149-
"#define MAJOR_VERSION 999\n"
150-
"#define MINOR_VERSION 0\n"
151-
"#define PATCH_VERSION 0\n"
152-
"#endif\n")
153-
endif()
131+
file(WRITE "${gv}"
132+
"#ifndef GEN_VERSION_H\n"
133+
"#define GEN_VERSION_H\n"
134+
"#define APP_VERSION \"3.3.0\"\n"
135+
"#define MAJOR_VERSION 3\n"
136+
"#define MINOR_VERSION 3\n"
137+
"#define PATCH_VERSION 0\n"
138+
"#endif\n")
154139

155140
#icon and correct libs/subsystem for windows
156141
if(WIN32)
@@ -224,7 +209,7 @@ set(CPACK_PACKAGE_VENDOR "oldsch00l")
224209
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
225210
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
226211
set(CPACK_PACKAGE_VERSION_MAJOR "3")
227-
set(CPACK_PACKAGE_VERSION_MINOR "0")
212+
set(CPACK_PACKAGE_VERSION_MINOR "3")
228213
set(CPACK_PACKAGE_VERSION_PATCH "0")
229214
set(CPACK_PACKAGE_INSTALL_DIRECTORY "SqliteBrowser${CPACK_PACKAGE_VERSION_MAJOR}")
230215
if(WIN32 AND NOT UNIX)

src/app.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
<key>CFBundlePackageType</key>
6565
<string>APPL</string>
6666
<key>CFBundleShortVersionString</key>
67-
<string>3.2.99</string>
67+
<string>3.3.0</string>
6868
<key>CFBundleSignature</key>
6969
<string>SqLB</string>
7070
<key>CFBundleVersion</key>
71-
<string>3.2.99</string>
71+
<string>3.3.0</string>
7272
<key>NSPrincipalClass</key>
7373
<string>NSApplication</string>
7474
<key>NSHighResolutionCapable</key>

src/gen_version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef GEN_VERSION_H
22
#define GEN_VERSION_H
3-
#define APP_VERSION "master_git"
4-
#define MAJOR_VERSION 999
5-
#define MINOR_VERSION 0
3+
#define APP_VERSION "3.3.0"
4+
#define MAJOR_VERSION 3
5+
#define MINOR_VERSION 3
66
#define PATCH_VERSION 0
77
#endif

0 commit comments

Comments
 (0)