omnivore/pkg/extension
Jackson Harper 2ec1d6f58c
Some checks failed
Build Docker Images / Build docker images (push) Has been cancelled
Build Self-Hosting Docker Images / Build self-host docker images (push) Has been cancelled
Run tests / Run Codebase tests (push) Has been cancelled
Run tests / Build docker images (push) Has been cancelled
Initial prototype of the V3 manifest extension (#4357)
* Initial prototype of the V3 manifest extension

* Make sure the content script is only injected once

* Implement addNote button

* More separation work for tasks, implement archive and update note

* Add back missing functionality, add guide to install Extensions

* Revert v2 changes

---------

Co-authored-by: Thomas Rogers <Podginator@gmail.com>
2025-02-23 16:35:41 +01:00
..
src Initial prototype of the V3 manifest extension (#4357) 2025-02-23 16:35:41 +01:00
.env.demo More updates for FF consent screen 2023-11-17 12:18:30 +08:00
.env.firefox Add installed page for granting consent on first run 2023-11-17 12:18:57 +08:00
.env.local Open source omnivore 2022-02-11 09:24:33 -08:00
.env.production Update extension to speak directly with the API 2022-07-16 12:20:06 -07:00
.env.qa Open source omnivore 2022-02-11 09:24:33 -08:00
Makefile Add Lexend font to Android, iOS, Web 2023-11-22 12:03:52 +08:00
package.json Update dependencies (#4539) 2025-02-11 18:22:50 +01:00
README Open source omnivore 2022-02-11 09:24:33 -08:00
replace-with-process-env.js Open source omnivore 2022-02-11 09:24:33 -08:00
webpack.js Add some padding on buttons in extension 2023-11-15 11:49:45 +08:00
yarn.lock Update dependencies (#4539) 2025-02-11 18:22:50 +01:00

We are using webpack to build the extension as described in the repo below:
	Credit: https://github.com/paulmwatson/web-ext-environments.git
Weback builds the main background script as well as the background html
page for the extension. Webpack copy plugin is used to transform env
variables in the main background script (not any of the content scripts).
Env variables are loaded using dotenv-webpack and the checked in .env files.

Steps for new extension release:
* yarn install
* To generate a production extension in dist/ folder to save articles
against production site, run: yarn build-prod
* For development extension to use against QA site (dev.omnivore.app) run yarn build-qa
* For using extension against localhost, run yarn build


Steps for creating Safari extension:
* Follow guide here:
  https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari
* Run: xcrun safari-web-extension-converter dist/ (on the webpack built extension dist/ folder)
* In xcode, build for 'Running', next 'Archive' and finally 'Distribute' and choose 'Copy' to share manually 
with others via file.