Move webmanifests to 'public'-directory, should fix #1293

This commit is contained in:
Pieter Vander Vennet 2023-02-06 01:47:11 +01:00
parent a8ccf2fcc5
commit c2113844e3
3 changed files with 5 additions and 5 deletions

View file

@ -353,7 +353,7 @@ async function main(): Promise<void> {
const { manifest, whiteIcons } = await createManifest(layout, alreadyWritten)
const manif = JSON.stringify(manifest, undefined, 2)
const manifestLocation = encodeURIComponent(layout.id.toLowerCase()) + ".webmanifest"
writeFile(manifestLocation, manif, err)
writeFile("public/" + manifestLocation, manif, err)
// Create a landing page for the given theme
const landing = await createLandingPage(layout, manifest, whiteIcons, alreadyWritten)
@ -377,7 +377,7 @@ async function main(): Promise<void> {
)
const manif = JSON.stringify(manifest, undefined, 2)
writeFileSync("index.manifest", manif)
writeFileSync("public/index.webmanifest", manif)
}
main().then(() => {