Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit f1a2e90

Browse files
Merge branch 'v2.0' into modern-language-changes
2 parents 21e769c + e8778b3 commit f1a2e90

File tree

4 files changed

+322
-6
lines changed

4 files changed

+322
-6
lines changed

bin/build.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
$rootDir = implode(DIRECTORY_SEPARATOR, [dirname(__FILE__), '..']);
4+
5+
$icons = [];
6+
7+
foreach (glob(implode(DIRECTORY_SEPARATOR, [$rootDir, 'icons', '*.svg'])) as $file) {
8+
$iconName = preg_replace('/\.svg$/i', '', basename($file));
9+
$iconContents = file_get_contents($file);
10+
11+
$icons[$iconName] = $iconContents;
12+
}
13+
14+
$export = var_export($icons, true);
15+
16+
file_put_contents(
17+
implode(DIRECTORY_SEPARATOR, [$rootDir, 'resources', 'icons.php']),
18+
<<<EOT
19+
<?php
20+
21+
return $export;
22+
EOT
23+
);

0 commit comments

Comments
 (0)