-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use separate manifest files for mozilla and chrome
- Loading branch information
Showing
6 changed files
with
55 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
web-ext-artifacts/ | ||
build/ | ||
dist/ | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "Random McMaster Page", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "Adds a 'Random Page' link to the bottom navbar on mcmaster.com", | ||
"author": "[email protected]", | ||
"icons": { | ||
"16": "icons/icon16.png", | ||
"32": "icons/icon32.png", | ||
"48": "icons/icon48.png", | ||
"64": "icons/icon64.png", | ||
"96": "icons/icon96.png", | ||
"128": "icons/icon128.png", | ||
"512": "icons/icon512.png" | ||
}, | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "{a33c470b-d151-4fc7-ae43-db4ab4d38b3f}" | ||
} | ||
"128": "icons/icon128.png" | ||
}, | ||
"content_scripts": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "Random McMaster Page", | ||
"version": "1.0.3", | ||
"description": "Adds a 'Random Page' link to the bottom navbar on mcmaster.com", | ||
"author": "[email protected]", | ||
"icons": { | ||
"16": "icons/icon16.png", | ||
"32": "icons/icon32.png", | ||
"48": "icons/icon48.png", | ||
"64": "icons/icon64.png", | ||
"96": "icons/icon96.png", | ||
"128": "icons/icon128.png" | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"*://*.mcmaster.com/*" | ||
], | ||
"js": [ | ||
"random_page.js" | ||
] | ||
} | ||
], | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "{a33c470b-d151-4fc7-ae43-db4ab4d38b3f}", | ||
"strict_min_version": "52.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Create directories | ||
mkdir -p dist | ||
mkdir -p build && cd build | ||
|
||
# Copy files to temp directory | ||
cp -r ../icons/ ./ | ||
cp -r ../README.md ./ | ||
cp -r ../LICENSE ./ | ||
cp -r ../random_page.js ./ | ||
cp -r ../manifest_$1.json ./manifest.json | ||
|
||
# Zip files and cleanup | ||
rm -f ../dist/random_mcmaster_page-$1.zip | ||
zip -r ../dist/random_mcmaster_page-$1.zip * | ||
cd .. && rm -r build |
This file was deleted.
Oops, something went wrong.