From aa4f65f12a62d2aa24bd84c0f70207178ee25903 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 7 Jul 2021 23:08:14 +0100 Subject: [PATCH 1/3] Fix manifest in prod. TODO: add nightly manifest back --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 6c627101..7543b223 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,7 +38,7 @@ function getVersion() { } const branch = getGitBranch(); -const isNightly = branch !== 'production'; +const isNightly = false;//branch !== 'production'; const iconPrefix = isNightly ? 'nightly-' : ''; export default defineConfig({ From 5bc1eca3aa7aba7574b2c19aefbf02144cc6bb87 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 7 Jul 2021 23:30:30 +0100 Subject: [PATCH 2/3] Add masking / mono icons. --- public/assets/icons/masking-512x512.png | Bin 0 -> 5042 bytes public/assets/icons/mono-48x48.png | Bin 0 -> 665 bytes src/sw.ts | 2 +- vite.config.ts | 14 +++++++++++++- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 public/assets/icons/masking-512x512.png create mode 100644 public/assets/icons/mono-48x48.png diff --git a/public/assets/icons/masking-512x512.png b/public/assets/icons/masking-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..85c49bba37a3bc9f66821821698c677640b8f2ba GIT binary patch literal 5042 zcmeHL`9IX_7eAkm8OA!6qC}MKR*G+B>Bg8sDA7eD5!2O;TSQ5=;v+Y1i{+}MvP`$8 zYs*rJBt~wQ7F1LAjBi4dt*jYizR&3U{Rh53-+8^}_4z#KdCob{dCvR1&ogs&my?~m zjJgZ}$UE5ExB%ej6$gqWdQ60KXVF7C*xn-qKvqTk#o$`T5+uYzT!ZeUx?-l=n%`W5AemVwHF zh?s2W-R}9D*FGD!Y>vnhh4du79jFcf`XwzB&`ts%=qLhQ8i1k;pq=uM;GgsOzu;im z!j#qQ`1a;O%*R~GU&i@w+ncTCCmYwe7m9=f!+n14Rr3PZ))&z_Y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C?$y=9`}Nw4hdrAMWup(9sZ z7@;yLp~naR?;nUoYXB7O0qEKoKr9LUErNQ*KZ1YG(nFL=*guwXxl2v3m_&^VCF&!%O5ke0gF)dbH z0Xf!FnG$QRh!v&>Tf`pILo~;kbqI*zTKiCB&*W||_Qvd9Pt$1$X_1rNZ0fA<37UzL zE}ZqJjCHXfn}Z)0dby9zy-7fUJPODEU7-Iy6ZU^*5D9vVC$fT?8{i{sBbopUi74qJ zfycr&q6;u^XW_{ { : JSON.stringify(data.content), timestamp: decodeTime(data._id), tag: data.channel, - badge: "https://app.revolt.chat/assets/icons/android-chrome-512x512.png", + badge: "https://app.revolt.chat/assets/icons/mono-48x48.png", data: channel?.channel_type === "TextChannel" ? `/server/${channel.server}/channel/${channel._id}` diff --git a/vite.config.ts b/vite.config.ts index 7543b223..80cc1954 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -54,8 +54,8 @@ export default defineConfig({ description: isNightly ? "Early preview builds of Revolt." : "User-first, privacy-focused chat platform.", categories: ["messaging"], start_url: "/", + orientation: "any", display: "standalone", - orientation: "portrait", background_color: "#101823", icons: [ { @@ -67,6 +67,18 @@ export default defineConfig({ "src": `/assets/icons/${iconPrefix}android-chrome-512x512.png`, "type": "image/png", "sizes": "512x512" + }, + { + "src": `/assets/icons/mono-48x48.png`, + "type": "image/png", + "sizes": "48x48", + "purpose": "mono" + }, + { + "src": `/assets/icons/masking-512x512.png`, + "type": "image/png", + "sizes": "512x512", + "purpose": "maskable" } ] } From 2e7a017b99bc1cdd0d59a95ebc3f2af6ce4d53d9 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 7 Jul 2021 23:47:53 +0100 Subject: [PATCH 3/3] Fix, should be monochrome not mono. --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 80cc1954..4622b766 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -72,7 +72,7 @@ export default defineConfig({ "src": `/assets/icons/mono-48x48.png`, "type": "image/png", "sizes": "48x48", - "purpose": "mono" + "purpose": "monochrome" }, { "src": `/assets/icons/masking-512x512.png`,