mirror of
https://github.com/MarkusZoppelt/stahl.git
synced 2026-11-27 06:43:49 +01:00
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.
8 lines
527 B
PowerShell
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)
|