mirror of https://github.com/gorhill/uBlock.git
Update publishing script for Firefox
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1809
This commit is contained in:
parent
9fbc50f14f
commit
185816187d
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue