Files
sshtermy/tools/dev/gifs/shot.js
T
Claude 7f5523b279 Paketquellen (Homebrew, apt, winget) und Webseite auf GitHub Pages
- release.yml baut .deb (amd64, arm64) und schreibt Formula/sshtermy.rb
- pages.yml: Webseite (site/, en + de, GIFs) und apt-Quelle unter /apt
- winget.yml: Einreichung bei winget-pkgs von Hand (Secret WINGET_TOKEN)
- Bei Homebrew/apt-Installation kein Selbst-Update, stattdessen Befehl
- tools/dev/gifs: Aufnahme der GIFs aus der echten App

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUfgD3KuJTKRbUm5tK6
2026-11-06 06:31:14 +00:00

13 lines
509 B
JavaScript

const { chromium } = require('playwright');
(async () => {
const dir = process.argv[2], n = +process.argv[3];
const b = await chromium.launch(); const p = await b.newPage({ deviceScaleFactor: 1, viewport: { width: 1200, height: 900 } });
const fs = require('fs');
for (let i = 0; i < n; i++) {
const f = `${dir}/${String(i).padStart(4, '0')}`;
await p.setContent(fs.readFileSync(f + '.html', 'utf8'));
await p.locator('.win').screenshot({ path: f + '.png' });
}
await b.close();
})();