mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-21 18:22:29 +01:00
Fix sha using path instead of filename
This commit is contained in:
parent
00ed9816e3
commit
716db7ac66
@ -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)
|
||||
|
||||
|
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user