Update publishing script for Firefox

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1809
This commit is contained in:
Raymond Hill 2021-11-11 09:24:09 -05:00
parent 9fbc50f14f
commit 185816187d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ with open(unsigned_xpi_filepath, 'rb') as f:
headers = { 'Authorization': get_jwt_auth(), } headers = { 'Authorization': get_jwt_auth(), }
data = { 'channel': 'unlisted' } data = { 'channel': 'unlisted' }
files = { 'upload': f, } files = { 'upload': f, }
signing_url = 'https://addons.mozilla.org/api/v3/addons/{0}/versions/{1}/'.format(extension_id, ext_version) signing_url = 'https://addons.mozilla.org/api/v4/addons/{0}/versions/{1}/'.format(extension_id, ext_version)
print('Submitting package to be signed...') print('Submitting package to be signed...')
response = requests.put(signing_url, headers=headers, data=data, files=files) response = requests.put(signing_url, headers=headers, data=data, files=files)
if response.status_code != 202: if response.status_code != 202: