diff --git a/.github/workflows/nuget-static-graphics.yml b/.github/workflows/nuget-static-graphics.yml index 4398728..6536a1a 100644 --- a/.github/workflows/nuget-static-graphics.yml +++ b/.github/workflows/nuget-static-graphics.yml @@ -301,6 +301,52 @@ jobs: } Get-ChildItem -Path $publishDir -Recurse -File | ForEach-Object { $_.FullName } + - name: Bundle macOS smoke app + if: ${{ startsWith(matrix.rid, 'osx-') }} + shell: pwsh + run: | + $ErrorActionPreference = "Stop" + $publishDir = Resolve-Path "artifacts/smoke-${{ matrix.rid }}" + $bundleRoot = Join-Path $publishDir "AvaloniaStaticLinkSmoke.app" + $contentsDir = Join-Path $bundleRoot "Contents" + $macosDir = Join-Path $contentsDir "MacOS" + New-Item -ItemType Directory -Path $macosDir -Force | Out-Null + + Get-ChildItem -Path $publishDir -Force | Where-Object { $_.Name -ne "AvaloniaStaticLinkSmoke.app" } | ForEach-Object { + Move-Item -LiteralPath $_.FullName -Destination $macosDir -Force + } + + @" + + + + + CFBundleExecutable + AvaloniaStaticLinkSmoke + CFBundleIdentifier + com.shiroka.avalonia-staticlink-smoke + CFBundleName + AvaloniaStaticLinkSmoke + CFBundleDisplayName + Avalonia StaticLink Smoke + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + ${{ github.run_number }} + LSMinimumSystemVersion + 12.0 + NSHighResolutionCapable + + NSPrincipalClass + NSApplication + + + "@ | Set-Content -Path (Join-Path $contentsDir "Info.plist") -Encoding UTF8 + + Get-ChildItem -Path $publishDir -Recurse -File | ForEach-Object { $_.FullName } + - name: Upload Avalonia smoke app uses: actions/upload-artifact@v4 with: