diff --git a/.github/workflows/icon-export-temp.yml b/.github/workflows/icon-export-temp.yml index 115fb9c8ab..fa870a8d31 100644 --- a/.github/workflows/icon-export-temp.yml +++ b/.github/workflows/icon-export-temp.yml @@ -14,36 +14,33 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v6 - - uses: voidzero-dev/setup-vp@v1 - with: - node-version-file: package.json - cache: true - run-install: | - args: - - --filter=@t3tools/scripts... - - name: inspect icon composer - shell: bash - run: | - tool="$(find /Applications -path '*Icon Composer.app/Contents/Executables/ictool' -type f | head -n 1)" - echo "tool=$tool" - "$tool" --version - "$tool" --help 2>&1 | tee /tmp/ictool-help.txt || true - strings "$tool" | grep -iE 'pre.?tahoe|platform|rendition|export' | sort -u | tail -100 | tee /tmp/ictool-strings.txt || true - - name: export generated icons - run: vp run icons:export - - name: export full bleed macOS probe + - name: probe icon composer exports shell: bash run: | + set -x mkdir -p /tmp/icon-probe - tool="$(find /Applications -path '*Icon Composer.app/Contents/Executables/ictool' -type f | head -n 1)" - "$tool" assets/prod/app-icon.icon --export-image --output-file /tmp/icon-probe/prod-macos.png --platform macOS --rendition Default --width 1024 --height 1024 --scale 1 --design-generation 26 || true + tool=/Applications/Xcode_26.0.1.app/Contents/Applications/Icon\ Composer.app/Contents/Executables/ictool + "$tool" --version + "$tool" --help 2>&1 | tee /tmp/icon-probe/ictool-help.txt || true + find /Applications -path '*Icon Composer.app/Contents/Executables/ictool' -type f -print > /tmp/icon-probe/tools.txt + while IFS= read -r candidate; do + printf '\n%s\n' "$candidate" >> /tmp/icon-probe/versions.txt + "$candidate" --version >> /tmp/icon-probe/versions.txt 2>&1 || true + done < /tmp/icon-probe/tools.txt + strings "$tool" | grep -iE 'pre.?tahoe|macOS|appearance|platform|rendition|export' | sort -u > /tmp/icon-probe/ictool-strings.txt || true + for platform in iOS macOS 'macOS pre-Tahoe' macOS-pre-Tahoe; do + for appearance in Light Default; do + slug="$(echo "$platform-$appearance" | tr ' ' '_' | tr '[:upper:]' '[:lower:]')" + "$tool" assets/prod/app-icon.icon --export-preview "$platform" "$appearance" 1024 1024 1 "/tmp/icon-probe/prod-$slug.png" > "/tmp/icon-probe/prod-$slug.log" 2>&1 || true + done + done + for variant in dev nightly prod; do + "$tool" "assets/$variant/app-icon.icon" --export-preview iOS Light 1024 1024 1 "/tmp/icon-probe/$variant-ios.png" > "/tmp/icon-probe/$variant-ios.log" 2>&1 || true + done + ls -lah /tmp/icon-probe + file /tmp/icon-probe/* - uses: actions/upload-artifact@v7 + if: always() with: - name: exported-icons - path: | - assets/ - apps/web/public/favicon* - apps/web/public/apple-touch-icon.png - /tmp/ictool-help.txt - /tmp/ictool-strings.txt - /tmp/icon-probe/ + name: icon-probe + path: /tmp/icon-probe/