diff --git a/assets/themes/hailhydrant/Twemoji12_1f692.svg b/assets/themes/hailhydrant/Twemoji12_1f692.svg
new file mode 100644
index 0000000..711c996
--- /dev/null
+++ b/assets/themes/hailhydrant/Twemoji12_1f692.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/themes/hailhydrant/Twemoji12_1f9ef.svg b/assets/themes/hailhydrant/Twemoji12_1f9ef.svg
new file mode 100644
index 0000000..e8b17ac
--- /dev/null
+++ b/assets/themes/hailhydrant/Twemoji12_1f9ef.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/themes/hailhydrant/Twemoji12_26d1.svg b/assets/themes/hailhydrant/Twemoji12_26d1.svg
new file mode 100644
index 0000000..e8457ae
--- /dev/null
+++ b/assets/themes/hailhydrant/Twemoji12_26d1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/themes/hailhydrant/hailhydrant.json b/assets/themes/hailhydrant/hailhydrant.json
index 41b9ac0..916964c 100644
--- a/assets/themes/hailhydrant/hailhydrant.json
+++ b/assets/themes/hailhydrant/hailhydrant.json
@@ -13,7 +13,7 @@
"en"
],
"maintainer": "",
- "icon": "assets/themes/hailhydrant/logo.svg",
+ "icon": "./assets/themes/hailhydrant/logo.svg",
"version": "0",
"startLat": 13.67801,
"startLon": 121.6625,
@@ -87,7 +87,7 @@
]
},
"then": {
- "en": " Pillar type."
+ "en": " Pillar type."
}
},
{
@@ -97,7 +97,7 @@
]
},
"then": {
- "en": " Pipe type."
+ "en": " Pipe type."
}
},
{
@@ -107,7 +107,7 @@
]
},
"then": {
- "en": " Wall type."
+ "en": " Wall type."
}
},
{
@@ -117,7 +117,7 @@
]
},
"then": {
- "en": " Underground type."
+ "en": " Underground type."
}
}
]
@@ -170,7 +170,7 @@
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
- "render": "hydrant.svg"
+ "render": "./assets/themes/hailhydrant/hydrant.svg"
},
"width": {
"render": "8"
@@ -261,7 +261,7 @@
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
- "render": "Twemoji12_1f9ef.svg"
+ "render": "./assets/themes/hailhydrant/Twemoji12_1f9ef.svg"
},
"width": {
"render": "8"
@@ -418,7 +418,7 @@
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
- "render": "Twemoji12_1f692.svg"
+ "render": "./assets/themes/hailhydrant/Twemoji12_1f692.svg"
},
"width": {
"render": "8"
@@ -474,7 +474,7 @@
"tagRenderings": [],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
- "render": "Twemoji12_26d1.svg"
+ "render": "./assets/themes/hailhydrant/Twemoji12_26d1.svg"
},
"width": {
"render": "8"
diff --git a/assets/themes/hailhydrant/hydrant.svg.1 b/assets/themes/hailhydrant/hydrant.svg.1
new file mode 100644
index 0000000..0dbda22
--- /dev/null
+++ b/assets/themes/hailhydrant/hydrant.svg.1
@@ -0,0 +1,107 @@
+
+
\ No newline at end of file
diff --git a/scripts/fixTheme.ts b/scripts/fixTheme.ts
index 2cc563f..b3d0404 100644
--- a/scripts/fixTheme.ts
+++ b/scripts/fixTheme.ts
@@ -16,6 +16,8 @@ if(process.argv.length == 2){
}
const path = process.argv[2]
+const dir = path.substring(0, path.lastIndexOf("/"))
+
console.log("Fixing up ", path)
const themeConfigJson : LayoutConfigJson = JSON.parse(readFileSync(path, "UTF8"))
@@ -47,7 +49,7 @@ for (const layerConfigJson of themeConfigJson.layers) {
authors: [],
sources: [remoteImage]
})
- replacements.push({source: remoteImage, destination: imgPath})
+ replacements.push({source: remoteImage, destination: `${dir}/${imgPath}`})
}
}
@@ -56,7 +58,6 @@ for (const replacement of replacements) {
fixedThemeJson = fixedThemeJson.replace(new RegExp(replacement.source, "g"), replacement.destination)
}
-const dir = path.substring(0, path.lastIndexOf("/"))
const fixScriptPath = dir + "/fix_script_"+path.replace(/\//g,"_")+".sh"
writeFileSync(dir + "/generated.license_info.json", JSON.stringify(licenses, null, " "))
writeFileSync(fixScriptPath, linuxHints.join("\n"))