Fix licenses

This commit is contained in:
Pieter Vander Vennet 2022-09-26 14:35:08 +02:00
parent 90dfe7298f
commit 59a1d88256
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[ [
{ {
"path": "hotel.svg", "path": "hotel.svg",
"license": "", "license": "CC0",
"authors": [ "authors": [
"Andy Allan", "Andy Allan",
"Michael Glanznig", "Michael Glanznig",

View file

@ -261,7 +261,9 @@ function main(args: string[]) {
mkdirSync("./assets/generated") mkdirSync("./assets/generated")
} }
let contents = ScriptUtils.readDirRecSync("./assets").filter( let contents = ScriptUtils.readDirRecSync("./assets")
.filter(p => !p.startsWith("./assets/templates/"))
.filter(
(entry) => entry.indexOf("./assets/generated") != 0 (entry) => entry.indexOf("./assets/generated") != 0
) )
let licensePaths = contents.filter((entry) => entry.indexOf("license_info.json") >= 0) let licensePaths = contents.filter((entry) => entry.indexOf("license_info.json") >= 0)