@@ -474,6 +474,7 @@ jobs:
474474 touch doc/target/deploy/release/1.0.0-alpha1/azul.macos.so
475475 touch doc/target/deploy/release/1.0.0-alpha1/azul.dll
476476 touch doc/target/deploy/release/1.0.0-alpha1/azul.lib
477+ touch doc/target/deploy/release/1.0.0-alpha1/azul.dll.lib
477478 touch doc/target/deploy/release/1.0.0-alpha1/azul.pyd
478479 # Placeholder reftest
479480 mkdir -p doc/target/reftest/reftest_img
@@ -602,7 +603,8 @@ jobs:
602603
603604 # Windows
604605 find artifacts-windows -name "azul.dll" ! -name "*.lib" -exec cp {} "$RELEASE_DIR/" \; 2>/dev/null || true
605- find artifacts-windows -name "azul.dll.lib" -exec cp {} "$RELEASE_DIR/azul.lib" \; 2>/dev/null || true
606+ find artifacts-windows -name "azul.lib" ! -name "azul.dll.lib" -exec cp {} "$RELEASE_DIR/" \; 2>/dev/null || true
607+ find artifacts-windows -name "azul.dll.lib" -exec cp {} "$RELEASE_DIR/" \; 2>/dev/null || true
606608 find artifacts-windows -name "azul.pyd" -exec cp {} "$RELEASE_DIR/" \; 2>/dev/null || true
607609
608610 # Headers
@@ -616,7 +618,33 @@ jobs:
616618 # Replace placeholder reftest with real results
617619 if [ -d artifacts-reftest ]; then
618620 rm -rf website/reftest 2>/dev/null || true
619- cp -r artifacts-reftest website/reftest
621+ mkdir -p website/reftest
622+ cp -r artifacts-reftest/* website/reftest/
623+ # Also copy index.html to reftest.html in website root
624+ if [ -f website/reftest/index.html ]; then
625+ cp website/reftest/index.html website/reftest.html
626+ echo " [OK] Created reftest.html from reftest results"
627+ fi
628+ fi
629+
630+ # Update file sizes in release HTML
631+ # The HTML contains "N/A" or placeholder sizes that need to be replaced with real sizes
632+ if [ -d "$RELEASE_DIR" ]; then
633+ echo "Updating file sizes in release HTML..."
634+ for file in "$RELEASE_DIR"/*; do
635+ if [ -f "$file" ]; then
636+ filename=$(basename "$file")
637+ size=$(du -h "$file" | cut -f1)
638+ # Find and update the size in release HTML files
639+ for html in website/release/*.html; do
640+ if [ -f "$html" ]; then
641+ # Replace "filename - N/A" or "filename - not available" with actual size
642+ sed -i "s|${filename} - N/A|${filename} - ${size}|g" "$html" 2>/dev/null || true
643+ sed -i "s|${filename} - not available|${filename} - ${size}|g" "$html" 2>/dev/null || true
644+ fi
645+ done
646+ fi
647+ done
620648 fi
621649
622650 echo "=== Final release artifacts ==="
0 commit comments