A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
685 B
20 lines
685 B
#!/bin/sh |
|
|
|
MANIFEST="manifest.json" |
|
|
|
version=$(jq -r '.version' $MANIFEST) |
|
|
|
icons=$(jq -r '.icons[]' $MANIFEST) |
|
content_scripts=$(jq -r '.content_scripts[].js[]' $MANIFEST) |
|
background_scripts=$(jq -r '.background.scripts[]' $MANIFEST) |
|
web_accessible_resources=$(jq -r '.web_accessible_resources[]' $MANIFEST) |
|
options_ui=$(jq -r '.options_ui.page' $MANIFEST) |
|
options_scripts="" |
|
for html in $options_ui; do |
|
scripts=$(grep -Po "(?<=src=['\"])[^'\"]*" "$html") |
|
for js in $scripts; do |
|
options_scripts="$options_scripts $(dirname $html)/$js" |
|
done |
|
done |
|
|
|
zip ${version}.zip $MANIFEST $icons $content_scripts $background_scripts $web_accessible_resources $options_ui $options_scripts
|
|
|