Skip to content

Standardize and modernize font_sharpener: new script interface, robust backup, EN/RU docs, and CI#1

Open
cto-new[bot] wants to merge 1 commit intomainfrom
feat-font-sharpener-rename-add-en-ru-readme-hardening-ci
Open

Standardize and modernize font_sharpener: new script interface, robust backup, EN/RU docs, and CI#1
cto-new[bot] wants to merge 1 commit intomainfrom
feat-font-sharpener-rename-add-en-ru-readme-hardening-ci

Conversation

@cto-new
Copy link
Copy Markdown
Contributor

@cto-new cto-new bot commented Oct 20, 2025

Summary

Standardizes the DPI scaling script as FontSharpener.ps1, adds a strong bilingual README, improves script safety and usability, and sets up CI for static analysis and dry-run syntax checks.

Details

  • Powershell script now named FontSharpener.ps1, with all old/unclear script names removed.
  • README is now bilingual (English first, then Russian) with clear usage, warnings, and examples.
  • Script accepts: -ScalingPercent, -DryRun, -BackupPath, -Restore, -Force, -Verbose, and validates all input.
  • Registry backup logic: JSON file with timestamp in Documents/FontSharpener-Backups (or custom path), plus underscore registry key snapshot for quick recovery.
  • Detects admin rights; relaunches elevated or provides clear instructions if needed.
  • Idempotent: No-op if current values match; -DryRun shows diffs only, no registry changes.
  • Improved error handling, transaction safety, and output guidance.
  • Adds GitHub Actions workflow for PSScriptAnalyzer (errors only) and basic syntax/logic dry-run check on Windows runners, plus publishes README artifact.

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

Migrates the main PowerShell script to FontSharpener.ps1 with a comprehensive
EN/RU README. Adds parameterized interface for scaling percent, dry run,
backup/restore, idempotency, and admin checks. Introduces robust backup logic
with safe JSON exports, transactional flow, and validation. CI ensures
PSScriptAnalyzer-compliant code and syntax checks.

This standardization improves usability, maintainability, and safety. Users can
preview changes, restore from backup, and script is safe to run on Win PS 5.1 or
PowerShell 7+. Documentation and GitHub workflow added for confidence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants