Add Firefox for Android PWA support #634 #635

open
opened by vielle.dev targeting master

the images could be generated from the dolly svg but that would probably require bringing in a large dependency like inkscape and wouldn't bring huge benifits imo (&& just sticking it in tree was mentioned as best in the discord)

appview/pages/pwa-icons/pwa-144.png

This is a binary file and will not be displayed.

appview/pages/pwa-icons/pwa-192.png

This is a binary file and will not be displayed.

appview/pages/pwa-icons/pwa-48.png

This is a binary file and will not be displayed.

appview/pages/pwa-icons/pwa-512.png

This is a binary file and will not be displayed.

appview/pages/pwa-icons/pwa-72.png

This is a binary file and will not be displayed.

appview/pages/pwa-icons/pwa-96.png

This is a binary file and will not be displayed.

+32
appview/state/state.go
···
"icons": [
{
"src": "/favicon.svg",
+
"type": "image/xml+svg",
+
"sizes": "any",
+
"purpose": "any"
+
},
+
{
+
"src": "/static/pwa-512.png",
+
"type": "image/png",
+
"sizes": "512x512"
+
},
+
{
+
"src": "/static/pwa-192.png",
+
"type": "image/png",
+
"sizes": "192x192"
+
},
+
{
+
"src": "/static/pwa-144.png",
+
"type": "image/png",
"sizes": "144x144"
+
},
+
{
+
"src": "/static/pwa-96.png",
+
"type": "image/png",
+
"sizes": "96x96"
+
},
+
{
+
"src": "/static/pwa-72.png",
+
"type": "image/png",
+
"sizes": "72x72"
+
},
+
{
+
"src": "/static/pwa-48.png",
+
"type": "image/png",
+
"sizes": "48x48"
}
],
"start_url": "/",
+2
flake.nix
···
mkdir -p appview/pages/static
# no preserve is needed because watch-tailwind will want to be able to overwrite
cp -fr --no-preserve=ownership ${packages'.appview-static-files}/* appview/pages/static
+
cp -fr appview/pages/pwa-icons/* appview/pages/static
export TANGLED_OAUTH_JWKS="$(${packages'.genjwks}/bin/genjwks)"
'';
env.CGO_ENABLED = 1;
···
program = toString (pkgs.writeShellScript "watch-appview" ''
echo "copying static files to appview/pages/static..."
${pkgs.coreutils}/bin/cp -fr --no-preserve=ownership ${packages'.appview-static-files}/* appview/pages/static
+
${pkgs.coreutils}/bin/cp -fr appview/pages/pwa-icons/* appview/pages/static
${air-watcher "appview" ""}/bin/run
'');
};