mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 02:42:41 +01:00
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
This commit is contained in:
parent
3c6fddf697
commit
b778f9dac2
1
dist/chromium/publish-beta.py
vendored
1
dist/chromium/publish-beta.py
vendored
@ -2,7 +2,6 @@
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import jwt
|
||||
import os
|
||||
import re
|
||||
import requests
|
||||
|
2
dist/firefox/publish-signed-beta.py
vendored
2
dist/firefox/publish-signed-beta.py
vendored
@ -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:
|
||||
|
1
dist/mv3/publish-beta.py
vendored
1
dist/mv3/publish-beta.py
vendored
@ -2,7 +2,6 @@
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import jwt
|
||||
import os
|
||||
import re
|
||||
import requests
|
||||
|
Loading…
Reference in New Issue
Block a user