From 85ec94efe58b25ec62805512ee05dc3549c5daa2 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 28 Feb 2021 00:30:58 +0100 Subject: [PATCH] Fix image of index page for webmanifest --- Models/Constants.ts | 2 +- index.html | 2 +- scripts/createLayouts.ts | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Models/Constants.ts b/Models/Constants.ts index 857b58b..94132c0 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.5.3"; + public static vNumber = "0.5.4"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/index.html b/index.html index 69ecf17..38f6155 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - + diff --git a/scripts/createLayouts.ts b/scripts/createLayouts.ts index 0766c4a..f07cfbe 100644 --- a/scripts/createLayouts.ts +++ b/scripts/createLayouts.ts @@ -9,6 +9,7 @@ import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs" import Locale from "../UI/i18n/Locale"; import Translations from "../UI/i18n/Translations"; import {Translation} from "../UI/i18n/Translation"; +import Constants from "../Models/Constants"; function enc(str: string): string { @@ -279,6 +280,23 @@ writeFile(generatedDir + "/wikiIndex", wikiPage, (err) => { console.log("Could not save wikiindex", err); } }); + createManifest(new LayoutConfig({ + icon: "./assets/svg/add.svg", + id: "index", + language: "en", + layers: [], + maintainer: "Pieter Vander Vennet", + startLat: 0, + startLon: 0, + startZoom: 0, + title: "MapComplete", + version: Constants.vNumber, + description:"MapComplete as a map viewer and editor which show thematic POI based on OpenStreetMap" +}),"index").then(manifObj => { + const manif = JSON.stringify(manifObj); + writeFileSync("index.webmanifest",manif) + }) + console.log("Counting all translations") Translations.CountTranslations(); console.log("All done!"); \ No newline at end of file