A png, of course
This commit is contained in:
parent
d3b748b873
commit
50b8638408
1 changed files with 14 additions and 15 deletions
|
@ -1,6 +1,5 @@
|
||||||
// We HAVE to mark this while importing
|
// We HAVE to mark this while importing
|
||||||
import {Utils} from "../Utils";
|
import {Utils} from "../Utils";
|
||||||
|
|
||||||
Utils.runningFromConsole = true;
|
Utils.runningFromConsole = true;
|
||||||
|
|
||||||
import LayoutConfig from "../Customizations/JSON/LayoutConfig";
|
import LayoutConfig from "../Customizations/JSON/LayoutConfig";
|
||||||
|
@ -11,7 +10,6 @@ import {Translation} from "../UI/i18n/Translation";
|
||||||
import Constants from "../Models/Constants";
|
import Constants from "../Models/Constants";
|
||||||
import * as all_known_layouts from "../assets/generated/known_layers_and_themes.json"
|
import * as all_known_layouts from "../assets/generated/known_layers_and_themes.json"
|
||||||
import {LayoutConfigJson} from "../Customizations/JSON/LayoutConfigJson";
|
import {LayoutConfigJson} from "../Customizations/JSON/LayoutConfigJson";
|
||||||
|
|
||||||
const sharp = require('sharp');
|
const sharp = require('sharp');
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,9 +88,10 @@ async function createManifest(layout: LayoutConfig) {
|
||||||
icons.push({
|
icons.push({
|
||||||
src: icon,
|
src: icon,
|
||||||
sizes: "513x513",
|
sizes: "513x513",
|
||||||
type: "image/svg"
|
type: "image/png"
|
||||||
})
|
})
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
console.log(icon)
|
console.log(icon)
|
||||||
throw "Icon is not an svg for " + layout.id
|
throw "Icon is not an svg for " + layout.id
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue