mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
rename Firefox package from uBlock0.webext.xpi to uBlock0.firefox.xpi
This commit is contained in:
parent
e37f6ee666
commit
350f590ac0
2 changed files with 10 additions and 10 deletions
18
dist/firefox/publish-signed-beta.py
vendored
18
dist/firefox/publish-signed-beta.py
vendored
|
@ -16,19 +16,19 @@ import zipfile
|
|||
from distutils.version import LooseVersion
|
||||
from string import Template
|
||||
|
||||
# - Download target (raw) uBlock0.webext.xpi from GitHub
|
||||
# - Download target (raw) uBlock0.firefox.xpi from GitHub
|
||||
# - This is referred to as "raw" package
|
||||
# - This will fail if not a dev build
|
||||
# - Modify raw package to make it self-hosted
|
||||
# - This is referred to as "unsigned" package
|
||||
# - Ask AMO to sign uBlock0.webext.xpi
|
||||
# - Ask AMO to sign uBlock0.firefox.xpi
|
||||
# - Generate JWT to be used for communication with server
|
||||
# - Upload unsigned package to AMO
|
||||
# - Wait for a valid download URL for signed package
|
||||
# - Download signed package as uBlock0.webext.signed.xpi
|
||||
# - Download signed package as uBlock0.firefox.signed.xpi
|
||||
# - This is referred to as "signed" package
|
||||
# - Upload uBlock0.webext.signed.xpi to GitHub
|
||||
# - Remove uBlock0.webext.xpi from GitHub
|
||||
# - Upload uBlock0.firefox.signed.xpi to GitHub
|
||||
# - Remove uBlock0.firefox.xpi from GitHub
|
||||
# - Modify updates.json to point to new version
|
||||
# - Commit changes to repo
|
||||
|
||||
|
@ -44,10 +44,10 @@ if not os.path.isfile(version_filepath):
|
|||
|
||||
extension_id = 'uBlock0@raymondhill.net'
|
||||
tmpdir = tempfile.TemporaryDirectory()
|
||||
raw_xpi_filename = 'uBlock0.webext.xpi'
|
||||
raw_xpi_filename = 'uBlock0.firefox.xpi'
|
||||
raw_xpi_filepath = os.path.join(tmpdir.name, raw_xpi_filename)
|
||||
unsigned_xpi_filepath = os.path.join(tmpdir.name, 'uBlock0.webext.unsigned.xpi')
|
||||
signed_xpi_filename = 'uBlock0.webext.signed.xpi'
|
||||
unsigned_xpi_filepath = os.path.join(tmpdir.name, 'uBlock0.firefox.unsigned.xpi')
|
||||
signed_xpi_filename = 'uBlock0.firefox.signed.xpi'
|
||||
signed_xpi_filepath = os.path.join(tmpdir.name, signed_xpi_filename)
|
||||
github_owner = 'gorhill'
|
||||
github_repo = 'uBlock'
|
||||
|
@ -88,7 +88,7 @@ release_info = response.json()
|
|||
# Extract URL to raw package from metadata
|
||||
#
|
||||
|
||||
# Find url for uBlock0.webext.xpi
|
||||
# Find url for uBlock0.firefox.xpi
|
||||
raw_xpi_url = ''
|
||||
for asset in release_info['assets']:
|
||||
if asset['name'] == signed_xpi_filename:
|
||||
|
|
2
dist/firefox/updates.template.json
vendored
2
dist/firefox/updates.template.json
vendored
|
@ -6,7 +6,7 @@
|
|||
"version": "$version",
|
||||
"applications": { "gecko": { "strict_min_version": "52" } },
|
||||
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/$version",
|
||||
"update_link": "https://github.com/gorhill/uBlock/releases/download/$version/uBlock0.webext.signed.xpi"
|
||||
"update_link": "https://github.com/gorhill/uBlock/releases/download/$version/uBlock0.firefox.signed.xpi"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue