diff --git a/Dockerfile b/Dockerfile index 8aeca24..271ca3e 100755 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,8 @@ COPY index-modern.html /speedtest/ COPY config.json /speedtest/ COPY stability.html /speedtest/ COPY favicon.ico /speedtest/ +COPY manifest.webmanifest /speedtest/ +COPY images/ /speedtest/images/ COPY docker/entrypoint.sh / diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 4ebc5fb..fb94ad2 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -37,6 +37,8 @@ COPY index-modern.html /speedtest/ COPY config.json /speedtest/ COPY stability.html /speedtest/ COPY favicon.ico /speedtest/ +COPY manifest.webmanifest /speedtest/ +COPY images/ /speedtest/images/ COPY docker/entrypoint.sh / diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 88be059..b069b94 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -41,8 +41,10 @@ cp /speedtest/stability.html /var/www/html/ cp /speedtest/config.json /var/www/html/ cp /speedtest/design-switch.js /var/www/html/ -# Copy favicon +# Copy PWA metadata and icons cp /speedtest/favicon.ico /var/www/html/ +cp /speedtest/manifest.webmanifest /var/www/html/ +cp -r /speedtest/images /var/www/html/ # Set custom webroot on alpine if is_alpine; then diff --git a/images/icon-192.png b/images/icon-192.png new file mode 100644 index 0000000..030bddc Binary files /dev/null and b/images/icon-192.png differ diff --git a/images/icon-512.png b/images/icon-512.png new file mode 100644 index 0000000..e3a0305 Binary files /dev/null and b/images/icon-512.png differ diff --git a/index-classic.html b/index-classic.html index d546c49..df399dd 100644 --- a/index-classic.html +++ b/index-classic.html @@ -3,6 +3,9 @@
+ + + diff --git a/index-modern.html b/index-modern.html index 9230aed..9d05c7d 100644 --- a/index-modern.html +++ b/index-modern.html @@ -7,6 +7,9 @@ + + + diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 0000000..5716118 --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1,20 @@ +{ + "name": "LibreSpeed", + "short_name": "LibreSpeed", + "start_url": "./", + "display": "standalone", + "background_color": "#000000", + "theme_color": "#000000", + "icons": [ + { + "src": "images/icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "images/icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/package.json b/package.json index d3ab029..73dde05 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,8 @@ "stability.html", "index.html", "favicon.ico", + "manifest.webmanifest", + "images/", "backend/", "examples/", "results/"