1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 02:32:29 +01:00

Fix sha using path instead of filename

This commit is contained in:
Elias Steurer 2023-08-24 08:40:10 +02:00
parent 00ed9816e3
commit 716db7ac66
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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__":