Don't use encoding for binary files
Some checks failed
CI Pipeline / Check Templates (PR) (pull_request) Successful in 18s
CI Pipeline / Check Templates (All) (pull_request) Has been skipped
pre-commit / build (pull_request) Successful in 23s
CI Pipeline / Package and Sign Mod (pull_request) Has been skipped
CI Pipeline / Check Templates (PR) (push) Has been skipped
CI Pipeline / Check Templates (All) (push) Has been skipped
pre-commit / build (push) Successful in 26s
CI Pipeline / Package and Sign Mod (push) Failing after 35s

This commit is contained in:
Stanislas Daniel Claude Dolcini 2024-09-09 21:36:59 +03:00
parent 04e9e17b3e
commit e082ff5c3b
Signed by: Stan
GPG Key ID: 244943DFF8370D60

View File

@ -83,7 +83,7 @@ if not commit:
previous_tag = get_previous_tag_in_series(tag)
changelog = get_changelog(commit, previous_tag)
headers = {
'Authorization': f'Bearer {oauth2_token}',
'Accept': 'application/json'
@ -95,7 +95,7 @@ r = requests.get(f'https://api.mod.io/v1/me/mods', params={
print(r.json())
files = {'filedata': open(mod_file_path, 'rb', encoding='utf-8')}
files = {'filedata': open(mod_file_path, 'rb')}
signature = open(f"{mod_name}-{mod_version}.zip.minisign", 'r', encoding="utf-8").read()