stahl/.github/workflows/screenshot.ps1
Markus Zoppelt bd93422087
feat: rewrite Stahl natively on Rune (#48)
Replaces the Tauri and React app with a native Rust app on Rune, with no web view, and moves to portfolio_rs 0.10.1. CI covers Linux, macOS and Windows.
2026-11-06 17:54:26 +01:00

8 lines
527 B
PowerShell

# The whole primary display, as a PNG. For CI's real-window check on Windows.
param([string]$Path)
Add-Type -AssemblyName System.Windows.Forms, System.Drawing
$bounds = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds
$image = New-Object System.Drawing.Bitmap $bounds.Width, $bounds.Height
$graphics = [System.Drawing.Graphics]::FromImage($image)
$graphics.CopyFromScreen($bounds.Location, [System.Drawing.Point]::Empty, $bounds.Size)
$image.Save((Join-Path (Get-Location) $Path), [System.Drawing.Imaging.ImageFormat]::Png)