Added release zipping for chrome
This commit is contained in:
parent
315547aece
commit
662c3b92ab
3 changed files with 8 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@ chrome/key.pem
|
||||||
chrome/data
|
chrome/data
|
||||||
chrome/*.crx
|
chrome/*.crx
|
||||||
chrome/manifest.json
|
chrome/manifest.json
|
||||||
|
chrome/release.zip
|
||||||
|
|
||||||
|
|
||||||
# Firefox extension files
|
# Firefox extension files
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"create-dirs": "mkdir -p firefox/data chrome/data build/injections build/lib",
|
"create-dirs": "mkdir -p firefox/data chrome/data build/injections build/lib",
|
||||||
"run": "bash scripts/test-extension.sh",
|
"run": "bash scripts/test-extension.sh",
|
||||||
|
"release": "bash scripts/release.sh",
|
||||||
"build-js": "bash scripts/build-js.sh",
|
"build-js": "bash scripts/build-js.sh",
|
||||||
"develop": "npm run build-js && bash scripts/distribute.sh",
|
"develop": "npm run build-js && bash scripts/distribute.sh",
|
||||||
"build-assets": "env/bin/python3 assets/build-assets.py",
|
"build-assets": "env/bin/python3 assets/build-assets.py",
|
||||||
|
|
|
@ -8,4 +8,9 @@ jpm xpi --check-memory --profile-memory
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
echo "Building Chrome Extension..."
|
echo "Building Chrome Extension..."
|
||||||
crx pack chrome -o 'chrome/hipchat-emoticons-for-all.crx' -p 'chrome/key.pem'
|
crx pack chrome -o 'chrome/hipchat-emoticons-for-all.crx' -p 'chrome/key.pem'
|
||||||
|
|
||||||
|
echo "Zipping Chrome Extension..."
|
||||||
|
cd chrome
|
||||||
|
zip 'release.zip' -1 -9 -T 'hipchat-emoticons-for-all.crx' 'manifest.json' 'data/*'
|
||||||
|
cd -
|
Reference in a new issue