Fix README metrics workflow badge replacement

This commit is contained in:
h3p 2026-03-29 16:44:38 +02:00
parent 082a23c04f
commit ba4055b5c4
No known key found for this signature in database
4 changed files with 8 additions and 8 deletions

View file

@ -361,7 +361,7 @@
CODE_SIGNING_ALLOWED = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 583;
CURRENT_PROJECT_VERSION = 584;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = CS727NF72U;
ENABLE_APP_SANDBOX = YES;
@ -444,7 +444,7 @@
CODE_SIGNING_ALLOWED = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 583;
CURRENT_PROJECT_VERSION = 584;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = CS727NF72U;
ENABLE_APP_SANDBOX = YES;

View file

@ -140,7 +140,7 @@
<p align="center">
<img alt="All Downloads" src="https://img.shields.io/github/downloads/h3pdesign/Neon-Vision-Editor/total?style=for-the-badge&label=All%20Downloads&color=0A84FF">
<img alt="Latest Release Downloads" src="https://img.shields.io/github/downloads/h3pdesign/Neon-Vision-Editor/latest/total?style=for-the-badge&label=Latest%20Release&color=22C55E">
<img alt="v0.5.8 Downloads" src="https://img.shields.io/github/downloads/h3pdesign/Neon-Vision-Editor/latest/total?style=for-the-badge&label=v0.5.8&color=22C55E">
</p>
<p align="center"><strong>Release Download + Traffic Trend</strong></p>

View file

@ -46,7 +46,7 @@
<text x="58" y="126.0" fill="#9CC3E6" font-size="14" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">80</text>
<polyline
points="130.0,280.0 264.3,267.5 398.6,292.5 532.9,285.0 667.1,290.0 801.4,262.5 935.7,182.5 1070.0,320.0"
points="130.0,280.0 264.3,267.5 398.6,292.5 532.9,285.0 667.1,290.0 801.4,262.5 935.7,182.5 1070.0,300.0"
fill="none"
stroke="url(#line)"
stroke-width="5"
@ -62,7 +62,7 @@
<circle cx="667.1" cy="290.0" r="7" fill="#47F193" stroke="#D7F7FF" stroke-width="2"/>
<circle cx="801.4" cy="262.5" r="7" fill="#5AF57D" stroke="#D7F7FF" stroke-width="2"/>
<circle cx="935.7" cy="182.5" r="7" fill="#72FA64" stroke="#D7F7FF" stroke-width="2"/>
<circle cx="1070.0" cy="320.0" r="7" fill="#8CFF5A" stroke="#D7F7FF" stroke-width="2"/>
<circle cx="1070.0" cy="300.0" r="7" fill="#8CFF5A" stroke="#D7F7FF" stroke-width="2"/>
<text x="116.0" y="352" fill="#D7E8F8" font-size="13" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">v0.5.1</text>
<text x="250.3" y="352" fill="#D7E8F8" font-size="13" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">v0.5.2</text>
<text x="384.6" y="352" fill="#D7E8F8" font-size="13" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">v0.5.3</text>
@ -78,7 +78,7 @@
<text x="657.1" y="276.0" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">12</text>
<text x="791.4" y="248.5" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">23</text>
<text x="925.7" y="168.5" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">55</text>
<text x="1060.0" y="306.0" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">0</text>
<text x="1060.0" y="286.0" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">8</text>
<text x="776" y="56" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">Release trend line with highlighted points</text>
<rect x="58" y="378" width="1084" height="210" rx="12" fill="#0A1A2B" stroke="#2A4762" stroke-width="1"/>

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View file

@ -438,11 +438,11 @@ def update_readme(
) -> str:
release_badge_line = (
' <img alt="{tag} Downloads" '
'src="https://img.shields.io/github/downloads/h3pdesign/Neon-Vision-Editor/{tag}/total'
'src="https://img.shields.io/github/downloads/h3pdesign/Neon-Vision-Editor/latest/total'
'?style=for-the-badge&label={tag}&color=22C55E">'
).format(tag=latest_tag)
content = re.sub(
r'(?m)^ <img alt="v[^"]+ Downloads" src="https://img\.shields\.io/github/downloads/h3pdesign/Neon-Vision-Editor/v[^/]+/total\?style=for-the-badge&label=v[^"&]+&color=22C55E">$',
r'(?m)^ <img alt="(?:v[^"]+ Downloads|Latest Release Downloads)" src="https://img\.shields\.io/github/downloads/h3pdesign/Neon-Vision-Editor/(?:v[^/]+|latest)/total\?style=for-the-badge&label=[^"&]+&color=22C55E">$',
release_badge_line,
content,
)