fix(firefox): make FFZ update work again

This commit is contained in:
matt1432 2023-12-13 19:15:55 -05:00
parent 21ff731859
commit cce40e99d0
2 changed files with 14 additions and 14 deletions

View file

@ -39,14 +39,11 @@ in
// { // {
inherit buildFirefoxXpiAddon; inherit buildFirefoxXpiAddon;
seventv = let seventv = buildFirefoxXpiAddon {
version = "4.0";
in
buildFirefoxXpiAddon {
pname = "frankerfacez"; pname = "frankerfacez";
inherit version; version = "4.0";
addonId = "frankerfacez@frankerfacez.com"; addonId = "frankerfacez@frankerfacez.com";
url = "https://cdn.frankerfacez.com/script/frankerfacez-${version}-an+fx.xpi"; url = "https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi";
sha256 = "sha256-U/yAra2c+RlGSaQtHfBz9XYsoDaJ67gmPJBsFrpqoE8="; sha256 = "sha256-U/yAra2c+RlGSaQtHfBz9XYsoDaJ67gmPJBsFrpqoE8=";
meta = with lib; { meta = with lib; {
homepage = "https://www.frankerfacez.com/"; homepage = "https://www.frankerfacez.com/";

View file

@ -16,6 +16,9 @@ parseFetchurl() {
sed -i "s,url = .*,url = \"$URL\";," "$FILE" sed -i "s,url = .*,url = \"$URL\";," "$FILE"
sed -i "s,hash = .*,hash = \"$HASH\";," "$FILE" sed -i "s,hash = .*,hash = \"$HASH\";," "$FILE"
# For Firefox addons
sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE"
} }
# TODO # TODO