add .env support

This commit is contained in:
Ugric
2026-02-26 21:18:39 +00:00
parent 5fe2d981e8
commit ad17674577
12 changed files with 20 additions and 6 deletions

3
build_scripts/build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
web-ext build --source-dir=./src --artifacts-dir=./web-ext-artifacts

View File

@@ -1,6 +1,10 @@
cd ..
#!/usr/bin/env bash
source .env
cd src
mv manifest.json manifest_temp.json
mv manifest_ff.json manifest.json
web-ext sign --channel=listed --api-key=user: --api-secret=
web-ext sign --channel=listed --api-key=user:$API_KEY --api-secret=$API_SECRET
mv manifest.json manifest_ff.json
mv manifest_temp.json manifest.json

View File

@@ -1,6 +1,10 @@
cd ..
#!/usr/bin/env bash
source .env
cd src
mv manifest.json manifest_temp.json
mv manifest_ff.json manifest.json
web-ext sign --channel=unlisted --api-key=user: --api-secret=
web-ext sign --channel=unlisted --api-key=user:$API_KEY --api-secret=$API_SECRET
mv manifest.json manifest_ff.json
mv manifest_temp.json manifest.json