diff --git a/web/build.rs b/web/build.rs
index b8e65b4c..e00856b1 100644
--- a/web/build.rs
+++ b/web/build.rs
@@ -18,6 +18,7 @@ fn main() -> std::io::Result<()> {
let dist_path = Path::new("./static/dist");
let nm_path = Path::new("./static/node_modules");
+ let static_path = Path::new("./static");
if fs::metadata(dist_path).is_err() {
fs::create_dir(dist_path)?;
@@ -43,14 +44,22 @@ fn main() -> std::io::Result<()> {
nm_path.join("hyperscript.org/dist/_hyperscript.min.js"),
dist_path.join("_hyperscript.min.js"),
)?;
- copy(
- Path::new("./static/utils.js"),
- dist_path.join("utils.js"),
- )?;
- copy(
- Path::new("./static/brass.jpeg"),
- dist_path.join("brass.jpeg"),
- )?;
+
+ let static_files = vec![
+ "utils.js",
+ "brass.jpeg",
+ "android-chrome-192x192.png",
+ "android-chrome-512x512.png",
+ "apple-touch-icon.png",
+ "favicon-16x16.png",
+ "favicon-32x32.png",
+ "favicon.ico",
+ "site.webmanifest",
+ ];
+
+ for file in static_files {
+ copy(static_path.join(file), dist_path.join(file))?;
+ }
resource_dir("./static/dist").build()
}
diff --git a/web/static/android-chrome-192x192.png b/web/static/android-chrome-192x192.png
new file mode 100644
index 00000000..92017f15
Binary files /dev/null and b/web/static/android-chrome-192x192.png differ
diff --git a/web/static/android-chrome-512x512.png b/web/static/android-chrome-512x512.png
new file mode 100644
index 00000000..f48c7f62
Binary files /dev/null and b/web/static/android-chrome-512x512.png differ
diff --git a/web/static/apple-touch-icon.png b/web/static/apple-touch-icon.png
new file mode 100644
index 00000000..d3e8aa45
Binary files /dev/null and b/web/static/apple-touch-icon.png differ
diff --git a/web/static/favicon-16x16.png b/web/static/favicon-16x16.png
new file mode 100644
index 00000000..7a2b3cfd
Binary files /dev/null and b/web/static/favicon-16x16.png differ
diff --git a/web/static/favicon-32x32.png b/web/static/favicon-32x32.png
new file mode 100644
index 00000000..1921ca14
Binary files /dev/null and b/web/static/favicon-32x32.png differ
diff --git a/web/static/favicon.ico b/web/static/favicon.ico
new file mode 100644
index 00000000..a4e268b0
Binary files /dev/null and b/web/static/favicon.ico differ
diff --git a/web/static/site.webmanifest b/web/static/site.webmanifest
new file mode 100644
index 00000000..b67f72f1
--- /dev/null
+++ b/web/static/site.webmanifest
@@ -0,0 +1,19 @@
+{
+ "name": "Brass",
+ "short_name": "Brass",
+ "icons": [
+ {
+ "src": "/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/android-chrome-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#FFFFFF",
+ "background_color": "#FFFFFF",
+ "display": "standalone"
+ }
diff --git a/web/templates/base.html b/web/templates/base.html
index d28de630..a8091b46 100644
--- a/web/templates/base.html
+++ b/web/templates/base.html
@@ -11,6 +11,10 @@
+
+
+
+