Skip to content

Commit

Permalink
Experimenting with attestation. Also add our worker to the manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirStendec committed Oct 11, 2024
1 parent 01bac0e commit 7bd83fe
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 16 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
actions: read
contents: write
attestations: write
steps:
- name: Checkout Extension Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -70,13 +75,24 @@ jobs:
- name: Edit Manifest (Insert Version)
run: node scripts/update-manifest.js

- name: ZIP Output
if: success()
run: |
zip -r extension.zip dist/*
- name: Attest Output
if: success()
uses: actions/attest-build-provenance@v1
with:
subject-path: extension.zip

- name: Upload Output
id: artifact-upload-step
if: success()
uses: actions/upload-artifact@v4
with:
name: built
path: dist/*
name: extension
path: extension.zip

- name: Report Success
if: success()
Expand Down
33 changes: 19 additions & 14 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
"short_name": "FFZ",
"version": "__DEV__",

"description": "Get custom emotes and tons of new features you'll never want to go without.",
"description": "The Twitch enhancement suite. Get custom emotes and tons of new features you'll never want to go without.",

"icons": {
"128": "icon128.png",
"16": "icon16.png",
"48": "icon48.png"
},

"homepage_url": "http://www.frankerfacez.com",
"permissions": [
"storage"
],
"host_permissions": [

"host_permissions": [
"*://*.twitch.tv/*",
"*://*.frankerfacez.com/*"
],
Expand All @@ -26,16 +25,21 @@
"*://*.youtube.com/*"
]
},

"web_accessible_resources": [
{
"resources": ["web/*"],
"matches": [
"*://*.twitch.tv/*",
"*://*.youtube.com/*"
]
}
],

"web_accessible_resources": [
{
"resources": ["web/*"],
"matches": [
"*://*.twitch.tv/*",
"*://*.youtube.com/*"
]
}
],
"background": {
"scripts": ["web/worker.js"],
"service_worker": "web/worker.js"
},

"content_scripts": [
{
Expand All @@ -56,6 +60,7 @@
]
}
],

"browser_specific_settings": {
"gecko": {
"id": "frankerfacez@frankerfacez.com"
Expand Down

0 comments on commit 7bd83fe

Please sign in to comment.