diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c37656f..663191a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,8 @@ on: - published jobs: build: + env: + ADDON_ID: "{14a15c41-13f4-498e-986c-7f00435c4d00}" runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/vite.config.ts b/vite.config.ts index 3426562..345a58b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -19,6 +19,9 @@ export default defineConfig({ ...manifest, version: (process.env.VERSION ?? '') || manifest.version }; + if ('browser_specific_settings' in newManifest && process.env.ADDON_ID) { + newManifest.browser_specific_settings.gecko.id = process.env.ADDON_ID; + } return newManifest; }, assets: 'assets',