Skip to content

Commit

Permalink
fix: chrome manifest.json removed during release workflow (#97)
Browse files Browse the repository at this point in the history
* fix: recover deleted/lost chrome manifest.json

* fix: distinct args in manifest.json version update
  • Loading branch information
cdrani authored Sep 2, 2023
1 parent b17e748 commit 4dd0cb8
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
- name: Update Version
if: steps.semver.outputs.version != ''
run: |
jq --arg version "${{ steps.semver.outputs.version }}" \
'.version = $version' chrome/manifest.json > chrome/tmp && \
jq --arg chromeVersion "${{ steps.semver.outputs.version }}" \
'.version = $chromeVersion' chrome/manifest.json > chrome/tmp && \
mv chrome/tmp chrome/manifest.json
jq --arg version "${{ steps.semver.outputs.version }}" \
'.version = $version' firefox/manifest.json > firefox/tmp && \
jq --arg firefoxVersion "${{ steps.semver.outputs.version }}" \
'.version = $firefoxVersion' firefox/manifest.json > firefox/tmp && \
mv firefox/tmp firefox/manifest.json
- name: Commit Changes
Expand Down
57 changes: 57 additions & 0 deletions chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"short_name": "Chorus",
"name": "Chorus - Spotify Enhancer",
"description": "Enhance Spotify with controls to save favourite snips, auto-skip tracks, and set global and custom speed. More to come!",
"version": "1.6.0",
"manifest_version": 3,
"author": "cdrani",
"action": {},
"icons": {
"16": "icons/icon16.png",
"24": "icons/icon24.png",
"48": "icons/icon48.png",
"64": "icons/icon64.png",
"128": "icons/icon128.png"
},
"content_scripts": [
{
"run_at": "document_idle",
"js": [
"utils/state.js",
"content-script.js"
],
"css": [
"styles.css"
],
"matches": [
"*://open.spotify.com/*"
]
}
],
"web_accessible_resources": [
{
"matches": [
"*://open.spotify.com/*"
],
"resources": [
"utils/*.js",
"models/*.js",
"events/*.js",
"components/*.js",
"observers/*.js",
"stores/*.js",
"actions/*.js",
"data/*.js"
]
}
],
"permissions": [
"activeTab",
"tabs",
"storage",
"unlimitedStorage"
],
"background": {
"service_worker": "background.js"
}
}

0 comments on commit 4dd0cb8

Please sign in to comment.