mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 02:42:33 +01:00
0d9d285608
Adds possibility to build extension files (Chrome and Safari) from command line. To run from the project directory: python tools/build.py [meta] If the optional `meta` argument is set, then only the manifest and language files are uptated. Without that everything is being built (extension files too) into the `dist/build/version_number` folder. For Chrome there will be two files, a crx, and a .zip file which includes the key.pem private key (so this must not be shared, it's just a bit help for publishing it to the Chrome Web Store). Beside the extension files, update-files are generated too (for self hosting - Safari needs it).
16 lines
363 B
Bash
16 lines
363 B
Bash
#!/bin/bash
|
|
#
|
|
# This script assumes a linux environment
|
|
|
|
echo "*** uBlock: Creating web store package"
|
|
echo "*** uBlock: Copying files"
|
|
cp -R css dist/ublock/
|
|
cp -R img dist/ublock/
|
|
cp -R js dist/ublock/
|
|
cp -R lib dist/ublock/
|
|
cp -R _locales dist/ublock/
|
|
cp *.html dist/ublock/
|
|
cp *.txt dist/ublock/
|
|
cp manifest.json dist/ublock/
|
|
echo "*** uBlock: Package done."
|