a11y-outline

web extension to navigate document outlines easily
git clone https://git.ce9e.org/a11y-outline.git

commit
a3d9e53b2a14d9212cb5b1fc187d5091e217041d
parent
221f3859675e4a6c016eb82923e9b009bfe47e8b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-07-24 10:57
provide separate manifests for chromium

Diffstat

M .github/workflows/main.yml 8 ++++++--
M Makefile 8 +++++++-
C manifest.json -> manifest.chromium.json 10 ++--------
M manifest.json 3 +--

4 files changed, 16 insertions, 13 deletions


diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml

@@ -5,7 +5,11 @@ jobs:
    5     5     if: startsWith(github.ref, 'refs/tags/')
    6     6     steps:
    7     7       - uses: actions/checkout@v3
    8    -1       - run: make
   -1     8       - run: |
   -1     9           make a11y-outline.firefox.zip
   -1    10           make a11y-outline.chromium.zip
    9    11       - uses: softprops/action-gh-release@v1
   10    12         with:
   11    -1           files: a11y-outline.zip
   -1    13           files: |
   -1    14             a11y-outline.firefox.zip
   -1    15             a11y-outline.chromium.zip

diff --git a/Makefile b/Makefile

@@ -1,7 +1,13 @@
    1    -1 a11y-outline.zip: manifest.json icon-128.png bg.js outline.js treeview.js outline.css vendor
   -1     1 a11y-outline.firefox.zip: manifest.json icon-128.png bg.js outline.js treeview.js outline.css vendor
    2     2 	rm -f $@
    3     3 	zip -r $@ $^
    4     4 
   -1     5 a11y-outline.chromium.zip: manifest.chromium.json icon-128.png bg.js outline.js treeview.js outline.css vendor
   -1     6 	mkdir chromium
   -1     7 	cp -r $^ chromium
   -1     8 	cd chromium && mv manifest.chromium.json manifest.json && zip -r ../$@ *
   -1     9 	rm -r chromium
   -1    10 
    5    11 vendor:
    6    12 	mkdir -p vendor
    7    13 	wget https://raw.githubusercontent.com/xi/aria-api/0.5.0/dist/aria.js -O vendor/aria.js

diff --git a/manifest.json b/manifest.chromium.json

@@ -13,8 +13,7 @@
   13    13     "128": "icon-128.png"
   14    14   },
   15    15   "background": {
   16    -1     "scripts": ["bg.js"],
   17    -1     "persistent": false
   -1    16     "service_worker": "bg.js"
   18    17   },
   19    18   "commands": {
   20    19     "_execute_action": {
@@ -41,10 +40,5 @@
   41    40   "permissions": [
   42    41     "activeTab",
   43    42     "scripting"
   44    -1   ],
   45    -1   "browser_specific_settings": {
   46    -1     "gecko": {
   47    -1       "id": "{34e8d1d4-286c-4cb8-96d3-9eecd0665c0f}"
   48    -1     }
   49    -1   }
   -1    43   ]
   50    44 }

diff --git a/manifest.json b/manifest.json

@@ -13,8 +13,7 @@
   13    13     "128": "icon-128.png"
   14    14   },
   15    15   "background": {
   16    -1     "scripts": ["bg.js"],
   17    -1     "persistent": false
   -1    16     "scripts": ["bg.js"]
   18    17   },
   19    18   "commands": {
   20    19     "_execute_action": {