Skip to content

Commit

Permalink
Make homepage replacement work on firefox again
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinrouillard committed Aug 30, 2021
1 parent f8c3c19 commit a7e63f3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json → extension/manifest.chrome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Tabatha",
"version": "0.1.2",
"version": "0.1.3",
"author": "Dustin Rouillard",
"chrome_url_overrides": {
"newtab": "index.html"
Expand Down
17 changes: 17 additions & 0 deletions extension/manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"manifest_version": 2,
"name": "Tabatha",
"version": "0.1.3",
"author": "Dustin Rouillard",
"chrome_url_overrides": {
"newtab": "index.html"
},
"chrome_settings_overrides": {
"homepage": "index.html"
},
"description": "Sleek & dark new tab replacement",
"icons": {
"48": "assets/icon48.png",
"96": "assets/icon96.png"
}
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"build": "next build",
"start": "next start",
"export": "next export",
"extension": "next build && next export -o extension/html && mv extension/html/_next extension/html/next && cp extension/manifest.json extension/html/manifest.json && cp -R extension/assets extension/html && sed -i '' -e 's/\\/_next/\\/next/g' extension/html/*.html && sed -i '' -e 's/\\/_next/\\/next/g' extension/html/next/static/chunks/*.js",
"extension": "next build && next export -o extension/html && mv extension/html/_next extension/html/next && cp -R extension/assets extension/html && sed -i '' -e 's/\\/_next/\\/next/g' extension/html/*.html && sed -i '' -e 's/\\/_next/\\/next/g' extension/html/next/static/chunks/*.js",
"dev": "yarn extension && web-ext run && rm -rf extension/html",
"pkg": "yarn extension && web-ext build --overwrite-dest && rm -rf extension/html"
"pkg:chrome": "cp extension/manifest.chrome.json extension/html/manifest.json && web-ext build --overwrite-dest -a web-ext-artifacts/chrome",
"pkg:firefox": "cp extension/manifest.firefox.json extension/html/manifest.json && web-ext build --overwrite-dest -a web-ext-artifacts/firefox",
"pkg": "yarn extension && yarn pkg:chrome && yarn pkg:firefox && rm -rf extension/html"
},
"dependencies": {
"lodash.debounce": "^4.0.8",
Expand All @@ -31,7 +33,9 @@
"sourceDir": "extension/html",
"ignoreFiles": [
"package.json",
"yarn.lock"
"yarn.lock",
"manifest.chrome.json",
"manifest.firefox.json"
]
}
}

1 comment on commit a7e63f3

@vercel
Copy link

@vercel vercel bot commented on a7e63f3 Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.