Replace base64 logo with absolute URL

This commit is contained in:
Rummskartoffel 2021-03-12 23:00:52 +01:00
parent ea37f035c4
commit 461768592f
2 changed files with 1 additions and 13 deletions

View file

@ -3,7 +3,6 @@
set -e
CLEANSLATE="node_modules/cleanslate/docs/files/cleanslate.css"
TRIDACTYL_LOGO="src/static/logo/Tridactyl_64px.png"
isWindowsMinGW() {
is_mingw="False"
@ -74,14 +73,3 @@ if [ -e "$CLEANSLATE" ] ; then
else
echo "Couldn't find cleanslate.css. Try running 'yarn install'"
fi
if [ -e "$TRIDACTYL_LOGO" ] ; then
# sed and base64 take different arguments on Mac
case "$(uname)" in
Darwin*) sed -i "" "s@REPLACE_ME_WITH_BASE64_TRIDACTYL_LOGO@$(base64 "$TRIDACTYL_LOGO")@" build/static/themes/default/default.css;;
*BSD) sed -in "s@REPLACE_ME_WITH_BASE64_TRIDACTYL_LOGO@$(base64 "$TRIDACTYL_LOGO" | tr -d '\r\n')@" build/static/themes/default/default.css;;
*) sed "s@REPLACE_ME_WITH_BASE64_TRIDACTYL_LOGO@$(base64 --wrap 0 "$TRIDACTYL_LOGO")@" -i build/static/themes/default/default.css;;
esac
else
echo "Couldn't find Tridactyl logo ($TRIDACTYL_LOGO)"
fi

View file

@ -6,7 +6,7 @@
--tridactyl-small-font-size: 12px;
--tridactyl-bg: white;
--tridactyl-fg: black;
--tridactyl-logo: url("data:image/png;base64,REPLACE_ME_WITH_BASE64_TRIDACTYL_LOGO");
--tridactyl-logo: url("moz-extension://__MSG_@@extension_id__/static/logo/tridactyl_64px.png");
--tridactyl-scrollbar-color: auto;
/* Mode indicator */