/LioPhotos

LioPhotos is a browser extension that help Lionel by adding features to Lumys Photos software

Primary LanguageJavaScript

LioPhotos

LioPhotos is a browser extension that help Lionel by adding features to Lumys Photos software

Features

Lumys scolaire

  • Add a button to generate a CSV with child's name and child's code
  • Allow select pictures from one to another using ctrl + click (or cmd + click on Mac)

Iconea Pro

  • Add a textarea on customer page to prefill inputs easily

Development

🛠 Build locally

  1. Checkout the copied repository to your local machine
  2. Run yarn to install all required dependencies
  3. Run yarn run build

The build step will create the distribution folder, this folder will contain the generated extension.

🏃 Run the extension

Using web-ext is recommended for automatic reloading and running in a dedicated browser instance. Alternatively you can load the extension manually (see below).

  1. Run yarn run watch to watch for file changes and build continuously
  2. In another terminal, run npx web-ext run -t chromium
  3. Check that the extension is loaded by opening the extension options (in Firefox or in Chrome).

Manually

You can also load the extension manually in Chrome or Firefox.

Publishing

It's possible to automatically publish to both the Chrome Web Store and Mozilla Addons at once by adding these secrets on GitHub Actions:

  1. CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN from [Google APIs][link-cws-keys].
  2. WEB_EXT_API_KEY, and WEB_EXT_API_SECRET from [AMO][link-amo-keys].

Also include EXTENSION_ID in the secrets (how to find it) and add Mozilla's gecko.id to manifest.json.

The GitHub Actions workflow will:

  1. Build the extension
  2. Create a version number based on the current UTC date time, like 19.6.16 and sets it in the manifest.json
  3. Deploy it to both stores

Auto-publishing

Thanks to the included GitHub Action Workflows, if you set up those secrets in the repo's Settings, the deployment will automatically happen:

  • on a schedule, by default every week (but only if there are any new commits in the last tag)
  • manually, by clicking "Run workflow" in the Actions tab.