This repository has been archived by the owner on Jul 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,19 +16,19 @@ | |
from distutils.version import LooseVersion | ||
from string import Template | ||
|
||
# - Download target (raw) uMatrix.webext.xpi from GitHub | ||
# - Download target (raw) uMatrix.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 uMatrix.webext.xpi | ||
# - Ask AMO to sign uMatrix.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 uMatrix.webext.signed.xpi | ||
# - Download signed package as uMatrix.firefox.signed.xpi | ||
# - This is referred to as "signed" package | ||
# - Upload uMatrix.webext.signed.xpi to GitHub | ||
# - Remove uMatrix.webext.xpi from GitHub | ||
# - Upload uMatrix.firefox.signed.xpi to GitHub | ||
# - Remove uMatrix.firefox.xpi from GitHub | ||
# - Modify updates.json to point to new version | ||
# - Commit changes to repo | ||
|
||
|
@@ -44,10 +44,10 @@ | |
|
||
extension_id = '[email protected]' | ||
tmpdir = tempfile.TemporaryDirectory() | ||
raw_xpi_filename = 'uMatrix.webext.xpi' | ||
raw_xpi_filename = 'uMatrix.firefox.xpi' | ||
raw_xpi_filepath = os.path.join(tmpdir.name, raw_xpi_filename) | ||
unsigned_xpi_filepath = os.path.join(tmpdir.name, 'uMatrix.webext.unsigned.xpi') | ||
signed_xpi_filename = 'uMatrix.webext.signed.xpi' | ||
unsigned_xpi_filepath = os.path.join(tmpdir.name, 'uMatrix.firefox.unsigned.xpi') | ||
signed_xpi_filename = 'uMatrix.firefox.signed.xpi' | ||
signed_xpi_filepath = os.path.join(tmpdir.name, signed_xpi_filename) | ||
github_owner = 'gorhill' | ||
github_repo = 'uMatrix' | ||
|
@@ -111,7 +111,7 @@ def input_secret(prompt, token): | |
# Extract URL to raw package from metadata | ||
# | ||
|
||
# Find url for uMatrix.webext.xpi | ||
# Find url for uMatrix.firefox.xpi | ||
raw_xpi_url = '' | ||
for asset in release_info['assets']: | ||
if asset['name'] == signed_xpi_filename: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This script assumes a linux environment | ||
|
||
echo "*** uMatrix.firefox: Creating web store package" | ||
echo "*** uMatrix.firefox: Copying files" | ||
|
||
DES=dist/build/uMatrix.firefox | ||
rm -rf $DES | ||
mkdir -p $DES | ||
|
||
bash ./tools/make-assets.sh $DES | ||
|
||
cp -R ./src/* $DES/ | ||
cp platform/chromium/*.html $DES/ | ||
cp platform/chromium/*.js $DES/js/ | ||
cp -R platform/chromium/img/* $DES/img/ | ||
cp LICENSE.txt $DES/ | ||
|
||
cp platform/firefox/polyfill.js $DES/js/ | ||
cp platform/firefox/vapi-cachestorage.js $DES/js/ | ||
cp platform/firefox/manifest.json $DES/ | ||
|
||
# firefox-specific | ||
rm $DES/options_ui.html | ||
rm $DES/js/options_ui.js | ||
|
||
echo "*** uMatrix.firefox: Generating meta..." | ||
python tools/make-firefox-meta.py $DES/ | ||
|
||
if [ "$1" = all ]; then | ||
echo "*** uMatrix.firefox: Creating package..." | ||
pushd $DES > /dev/null | ||
zip ../$(basename $DES).xpi -qr * | ||
popd > /dev/null | ||
fi | ||
|
||
echo "*** uMatrix.firefox: Package done." |
This file was deleted.
Oops, something went wrong.