Skip to content

Commit 5526125

Browse files
authored
Update version to v5.0.5 (#2606)
* chore(build): fix cmakelist issue when solving conflict * chore(version): update to v5.0.5 * chore(workflows): update upload-artifact version to v4
1 parent acf11d8 commit 5526125

File tree

6 files changed

+27
-7
lines changed

6 files changed

+27
-7
lines changed

.github/workflows/fuzz.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fuzz-seconds: 600
1717
dry-run: false
1818
- name: Upload Crash
19-
uses: actions/upload-artifact@v3
19+
uses: actions/upload-artifact@v4
2020
if: failure()
2121
with:
2222
name: artifacts

CMakeLists.txt

+17-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,23 @@ cmake_policy(SET CMP0042 NEW)
2121
# Enable support for MSVC_RUNTIME_LIBRARY
2222
cmake_policy(SET CMP0091 NEW)
2323

24-
project(capstone
25-
VERSION 5.0.4
26-
)
24+
# Check if VERSION is provided externally, otherwise default to 5.0.3
25+
if(NOT DEFINED PROJECT_VERSION)
26+
set(PROJECT_VERSION "5.0.5")
27+
endif()
28+
29+
# Use PROJECT_VERSION directly for CPack
30+
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
31+
32+
# Remove the 'v' prefix if it exists and extract the major, minor, and patch versions
33+
string(REGEX MATCH "^[vV]?([0-9]+\\.[0-9]+\\.[0-9]+)" _ ${PROJECT_VERSION})
34+
set(PROJECT_VERSION_BASE ${CMAKE_MATCH_1})
35+
36+
# Print the values of PROJECT_VERSION and PROJECT_VERSION_BASE
37+
message(STATUS "PROJECT_VERSION: ${CPACK_PACKAGE_VERSION} CAPSTONE_VERSION: ${PROJECT_VERSION_BASE}")
38+
39+
# Set the project version without the pre-release identifier
40+
project(capstone VERSION ${PROJECT_VERSION_BASE})
2741

2842
if (MSVC)
2943
add_compile_options(/W1 /w14189)

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
This file details the changelog of Capstone.
22

3+
--------------------------------
4+
Version 5.0.5: January 16th, 2025
5+
6+
## What's Changed
7+
* Fix code missing in v5.0.4
8+
39
--------------------------------
410
Version 5.0.4: January 16th, 2025
511

bindings/python/capstone/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
# Package version
181181
CS_VERSION_MAJOR = CS_API_MAJOR
182182
CS_VERSION_MINOR = CS_API_MINOR
183-
CS_VERSION_EXTRA = 4
183+
CS_VERSION_EXTRA = 5
184184

185185
__version__ = "%u.%u.%u" %(CS_VERSION_MAJOR, CS_VERSION_MINOR, CS_VERSION_EXTRA)
186186

include/capstone/capstone.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extern "C" {
5858
// Capstone package version
5959
#define CS_VERSION_MAJOR CS_API_MAJOR
6060
#define CS_VERSION_MINOR CS_API_MINOR
61-
#define CS_VERSION_EXTRA 4
61+
#define CS_VERSION_EXTRA 5
6262

6363
/// Macro for meta programming.
6464
/// Meant for projects using Capstone and need to support multiple

pkgconfig.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PKG_MAJOR = 5
66
PKG_MINOR = 0
77

88
# version bugfix level. Example: PKG_EXTRA = 1
9-
PKG_EXTRA = 4
9+
PKG_EXTRA = 5
1010

1111
# version tag. Examples: rc1, b2, post1 - or just comment out for no tag
1212
PKG_TAG =

0 commit comments

Comments
 (0)