From b778f9dac2dd0a6cb0adc2d3a7f8c717fa53e25b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 14 Nov 2022 10:31:04 -0500 Subject: [PATCH] Fix AM)-signing script after changes in jwt jwt.encode() now returns string type. Reference: - https://pyjwt.readthedocs.io/en/stable/changelog.html#improve-typings --- dist/chromium/publish-beta.py | 1 - dist/firefox/publish-signed-beta.py | 2 +- dist/mv3/publish-beta.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dist/chromium/publish-beta.py b/dist/chromium/publish-beta.py index 03e781e13..924b8ebe6 100755 --- a/dist/chromium/publish-beta.py +++ b/dist/chromium/publish-beta.py @@ -2,7 +2,6 @@ import datetime import json -import jwt import os import re import requests diff --git a/dist/firefox/publish-signed-beta.py b/dist/firefox/publish-signed-beta.py index 8dbd7048c..96afe21a9 100755 --- a/dist/firefox/publish-signed-beta.py +++ b/dist/firefox/publish-signed-beta.py @@ -190,7 +190,7 @@ def get_jwt_auth(): 'iat': datetime.datetime.utcnow(), 'exp': datetime.datetime.utcnow() + datetime.timedelta(seconds=15), } - return 'JWT ' + jwt.encode(jwt_payload, amo_secret).decode() + return 'JWT ' + jwt.encode(jwt_payload, amo_secret) print('Ask AMO to sign self-hosted xpi package...') with open(unsigned_xpi_filepath, 'rb') as f: diff --git a/dist/mv3/publish-beta.py b/dist/mv3/publish-beta.py index a5b4a2780..18ecae4ae 100755 --- a/dist/mv3/publish-beta.py +++ b/dist/mv3/publish-beta.py @@ -2,7 +2,6 @@ import datetime import json -import jwt import os import re import requests