Selaa lähdekoodia

ref: actually this was unnecessary

Sv443 2 kuukautta sitten
vanhempi
commit
3253de300b
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      assets/spritesheet.svg
  2. 3 3
      src/tools/post-build.ts

+ 1 - 1
assets/spritesheet.svg

@@ -1,4 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" id="bytm-svg-spritesheet" data-build="b2380610" style="display: none;" inert="true">
+<svg xmlns="http://www.w3.org/2000/svg" id="bytm-svg-spritesheet" style="display: none;" inert="true">
   <symbol id="bytm-svg-icon-advanced_mode" viewBox="0 -960 960 960">
     <svg height="24" viewBox="0 -960 960 960" width="24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m 456.54655,-331.45728 h 46.9069 v -125.08927 h 125.08927 v -46.9069 H 503.45345 v -125.08927 h -46.9069 v 125.08927 H 331.45728 v 46.9069 h 125.08927 z m 23.50583,148.54349 q -61.63461,0 -115.86705,-23.39169 -54.23324,-23.39169 -94.35014,-63.49062 -40.11769,-40.0997 -63.51955,-94.3087 -23.40185,-54.20821 -23.40185,-115.84282 0,-61.63461 23.39169,-115.86705 23.39169,-54.23324 63.49062,-94.35014 40.0997,-40.11769 94.3087,-63.51955 54.20821,-23.40185 115.84282,-23.40185 61.63461,0 115.86705,23.39169 54.23324,23.39169 94.35014,63.49062 40.11769,40.0997 63.51955,94.3087 23.40185,54.20821 23.40185,115.84282 0,61.63461 -23.39169,115.86705 -23.39169,54.23324 -63.49062,94.35014 -40.0997,40.11769 -94.3087,63.51955 -54.20821,23.40185 -115.84282,23.40185 z M 480,-229.82148 q 104.76226,0 177.47039,-72.70813 72.70813,-72.70813 72.70813,-177.47039 0,-104.76226 -72.70813,-177.47039 Q 584.76226,-730.17852 480,-730.17852 q -104.76226,0 -177.47039,72.70813 -72.70813,72.70813 -72.70813,177.47039 0,104.76226 72.70813,177.47039 72.70813,72.70813 177.47039,72.70813 z M 480,-480 Z" style="stroke-width:0.781808" /></svg>
   </symbol>

+ 3 - 3
src/tools/post-build.ts

@@ -188,7 +188,7 @@ I welcome every contribution on GitHub!
       }
     }
 
-    await createSvgSpritesheet(buildNbr);
+    await createSvgSpritesheet();
 
     console.info([
       "",
@@ -505,7 +505,7 @@ function getFileHashSha256(path: string): Promise<string> {
 }
 
 /** Compiles all `icon-*` assets into a single SVG spritesheet file and writes it to `assets/spritesheet.svg` */
-async function createSvgSpritesheet(buildNbr: string) {
+async function createSvgSpritesheet() {
   try {
     const sprites: string[] = [];
 
@@ -521,7 +521,7 @@ async function createSvgSpritesheet(buildNbr: string) {
     }
 
     await writeFile(resolveResourcePath("spritesheet.svg"), `\
-<svg xmlns="http://www.w3.org/2000/svg" id="bytm-svg-spritesheet" data-build="${buildNbr}" style="display: none;" inert="true">
+<svg xmlns="http://www.w3.org/2000/svg" id="bytm-svg-spritesheet" style="display: none;" inert="true">
   ${sprites.join("\n  ")}
 </svg>`
     );