1
0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-09-16 13:48:35 +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
EXPOSE 3000/tcp
WORKDIR "/usr/local/share/browserphone"
WORKDIR "/usr/local/share/browserphone/dist"
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">
<title>BrowserPhone</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<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
set -euxo pipefail
ln -f dist/app.js app.js
korvike -i dist/index.html -o index.html
if [[ ! -f index.html.dist ]]; then
mv index.html index.html.dist
fi
korvike -i index.html.dist -o index.html
exec python -m http.server 3000