fix add-on manifest

This commit is contained in:
Noah Masur
2026-01-30 17:45:04 -05:00
parent 0239a9925c
commit be6d6b0d35
3 changed files with 11 additions and 5 deletions

View File

@@ -16,7 +16,10 @@
},
"browser_specific_settings": {
"gecko": {
"id": "firefox-history-exporter@nmasur.com"
"id": "firefox-history-exporter@nmasur.com",
"data_collection_permissions": {
"required": ["none"]
}
}
}
}

View File

@@ -7,13 +7,16 @@ pkgs.stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgs.zip ];
# We aren't building, just packaging
dontUnpack = true;
buildCommand = ''
installPhase = ''
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
mkdir -p "$dst"
(cd ${src}; zip "$dst/firefox-history-exporter@nmasur.com.xpi" manifest.json background.js popup.html popup.js)
zip -j "$dst/firefox-history-exporter@nmasur.com.xpi" \
"${src}/manifest.json" \
"${src}/background.js" \
"${src}/popup.html" \
"${src}/popup.js"
'';
meta = with pkgs.lib; {

View File

@@ -47,7 +47,7 @@ in
vimium
wappalyzer # TODO: only for work profile
pkgs.nmasur.firefox-history-exporter
copy-as-markdown
# copy-as-markdown
# saml-tracer
# text-fragment
];