-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for chromium #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! It could be the first step to automatically publishing this in the chrome web store as well.
Makefile
Outdated
jq 'del(.background.scripts) | del(.browser_specific_settings) | .background += {service_worker: "js/service-worker.js"}' manifest.json > shiori-chromium/manifest.json | ||
echo "importScripts('browser-polyfill.js', 'background-script.js');" > shiori-chromium/js/service-worker.js | ||
sed -i 's#icons#/icons#g' shiori-chromium/js/background-script.js | ||
web-ext build -s shiori-chromium -a dist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe is better to build the chromium extension under a different directory?
web-ext build -s shiori-chromium -a dist | |
web-ext build -s shiori-chromium -a dist-chromium |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly, the zip filenames are the same, so using different directories would be better
d548a63
to
ad84d3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the quick change!
According to the mozilla/web-ext#2653 (comment), modified the Makefile to build a chromium extension.
Solve #23