1
0
Fork 0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-11-09 14:20:04 +00:00

Add manifest

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-10 23:13:13 +02:00
parent facd2c06d4
commit 1679c8b0d5
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
7 changed files with 33 additions and 3 deletions

View file

@ -27,5 +27,5 @@ RUN set -ex \
&& apk --no-cache add bash && apk --no-cache add bash
EXPOSE 3000/tcp EXPOSE 3000/tcp
WORKDIR "/usr/local/share/browserphone" WORKDIR "/usr/local/share/browserphone/dist"
CMD ["/usr/local/bin/docker-entrypoint.sh"] CMD ["/usr/local/bin/docker-entrypoint.sh"]

2
dist/index.html vendored
View file

@ -10,6 +10,8 @@
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"> integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<title>BrowserPhone</title> <title>BrowserPhone</title>
<link rel="manifest" href="manifest.json">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

25
dist/manifest.json vendored Normal file
View file

@ -0,0 +1,25 @@
{
"short_name": "BrowserPhone",
"name": "BrowserPhone",
"icons": [
{
"src": "phone_192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "phone_512.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "phone_600.png",
"type": "image/png",
"sizes": "600x600"
}
],
"start_url": "/",
"background-color": "#222222",
"display": "standalone",
"theme_color": "#222222"
}

BIN
dist/phone_192.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/phone_512.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
dist/phone_600.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -1,7 +1,10 @@
#!/usr/local/bin/dumb-init /bin/bash #!/usr/local/bin/dumb-init /bin/bash
set -euxo pipefail set -euxo pipefail
ln -f dist/app.js app.js if [[ ! -f index.html.dist ]]; then
korvike -i dist/index.html -o index.html mv index.html index.html.dist
fi
korvike -i index.html.dist -o index.html
exec python -m http.server 3000 exec python -m http.server 3000