OpenSwitchMaps icon indicating copy to clipboard operation
OpenSwitchMaps copied to clipboard

Setup CI and support manifest v3

Open deevroman opened this issue 1 month ago • 1 comments

I know that you have problems with the release of updates, so I want to offer help in setting up CI. After that, you just need to download the archive from GitHub and upload it to the extension store.

About CI:

  1. I set up CI. Now, an archive with the extension for Firefox and Chrome will be created for each commit. What can test new PRs.
  2. You can also manually create a new release by clicking one button. Potentially, you can integrate the extension store API further. I suspect it will also be easier to pass reviews in stores, because now you can just give a GitHub Action link.

About Manifest v3:

  1. To support Manifest v3, we had to switch to ESM instead of require and update Parcel. ESM is necessary because in
"background": {
    "service_worker": "background.js",
    "type": "module"
  },

only type: module is supported. Along the way, I had to update the Vue version.

All that changes in the build is that you now need to explicitly specify the browser. For example TARGET=firefox npm run build 2. However, now you need two manifests. The required manifest is selected during the build process 3. Nothing has changed for Firefox. Chrome now doesn't have chrome.pageAction, but it does have chrome.action. I took that into account.


I am a developer https://github.com/deevroman/better-osm-org and despite the fact that I released similar functionality in the script, your extension has a killer feature — it works not only for osm.org. If you don't have time to support the extension, then I can pick up further development of the extension.

deevroman avatar Nov 15 '25 12:11 deevroman

Thank you for your contribution. I'll try it soon.

tankaru avatar Nov 16 '25 11:11 tankaru