Compare commits

5 Commits

Author SHA1 Message Date
fd1452d0ce Merge pull request 'add .env support' (#2) from Ugric/Aula-Fixer:main into main
Reviewed-on: #2
2026-02-26 21:22:24 +00:00
Ugric
28d5fb6f83 re add .env to .gitignore and make example 2026-02-26 21:20:01 +00:00
Ugric
b5984fba76 re add .env to .gitignore and make example 2026-02-26 21:19:52 +00:00
Ugric
ad17674577 add .env support 2026-02-26 21:18:39 +00:00
Ugric
5fe2d981e8 add .env support 2026-02-26 21:18:32 +00:00
13 changed files with 21 additions and 6 deletions

2
.env_example Normal file
View File

@@ -0,0 +1,2 @@
API_KEY="YOUR_API_KEY"
API_SECRET="YOUR_API_SECRET"

4
.gitignore vendored
View File

@@ -4,4 +4,6 @@ Archive.zip
dev-resources
content copy.js
aula-fixer_v1-2.zip
.env
.env
web-ext-artifacts

Binary file not shown.

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

View File

@@ -1,7 +1,7 @@
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.type === "GET_KEYWORDS") {
const remoteUrl = "https://git.wbell.dev/TussockyJoker/Aula-Fixer/raw/branch/main/keywords.txt";
const remoteUrl = "https://git.wbell.dev/TussockyJoker/Aula-Fixer/raw/branch/main/src/keywords.txt";
const localUrl = chrome.runtime.getURL("keywords.txt");
// remote

Binary file not shown.