From 716db7ac66f8de3473cdfb1f4e7472c1eec66799 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 24 Aug 2023 08:40:10 +0200 Subject: [PATCH] Fix sha using path instead of filename --- CMake/GetProjectVersion.cmake | 2 +- Tools/create_sha512.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/GetProjectVersion.cmake b/CMake/GetProjectVersion.cmake index f0f6011b..02f43d24 100644 --- a/CMake/GetProjectVersion.cmake +++ b/CMake/GetProjectVersion.cmake @@ -22,7 +22,7 @@ function(get_project_version VERSION_VAR) ) message(STATUS "Parsing git tag: ${GIT_VERSION}") - string(REPLACE "v" "" STRIPPED_VERSION "${GIT_VERSION}") # Remove the 'V' prefix + string(REPLACE "v" "" STRIPPED_VERSION "${GIT_VERSION}") # Remove the 'v' prefix string(REPLACE "-" ";" VERSION_LIST ${STRIPPED_VERSION}) list(GET VERSION_LIST 0 VERSION_STRING) diff --git a/Tools/create_sha512.py b/Tools/create_sha512.py index 562d384d..79ee704d 100644 --- a/Tools/create_sha512.py +++ b/Tools/create_sha512.py @@ -23,7 +23,7 @@ def combine_sha256(): with open(file.with_name(f"{file.name}.sha256.txt"), 'r') as f_in: sha256_hash = f_in.read().strip() sha512_hash = hashlib.sha512(sha256_hash.encode()).hexdigest() - f_out.write(f"{sha512_hash} {file}\n") + f_out.write(f"{sha512_hash} {file.name}\n") if __name__ == "__main__":