Merge pull request #57: docs — 2.0.0 release notes, user guide, contact addresses
docs: 2.0.0 release notes, user guide, contact addresses
This commit is contained in:
25 files changed
+945
-197
No files matched your search
@@ -7,7 +7,10 @@ behavior that violates
|
||||
[GitHub's Acceptable Use Policies](https://docs.github.com/site-policy/acceptable-use-policies)
|
||||
are not tolerated in this project's spaces (issues, pull requests, discussions, and comments).
|
||||
|
||||
Please read the full text linked above. To report unacceptable behavior, contact the maintainer
|
||||
via [GitHub private vulnerability reporting](https://github.com/poli0981/CommandForge/security/advisories/new)
|
||||
or by opening a minimal issue asking for a private contact channel (do not include sensitive
|
||||
details in a public issue).
|
||||
Please read the full text linked above.
|
||||
|
||||
## Reporting
|
||||
|
||||
To report unacceptable behavior, email **[code@poli0981.dev](mailto:code@poli0981.dev)**. Reports
|
||||
are handled privately; don't put sensitive details in a public issue. You can also use GitHub's
|
||||
**Report content** option on the comment or issue concerned.
|
||||
+51
-10
@@ -6,33 +6,73 @@ opening an issue or pull request.
|
||||
|
||||
## Quick start
|
||||
|
||||
Requires Windows 10 22H2 / 11 and the .NET 10 SDK.
|
||||
|
||||
```bash
|
||||
dotnet restore
|
||||
dotnet build -c Release # must be 0 warnings (warnings are errors)
|
||||
dotnet test # all tests must pass
|
||||
dotnet format # match the code style
|
||||
dotnet build -c Release # must be 0 warnings (warnings are errors)
|
||||
dotnet test # all tests must pass
|
||||
dotnet format --verify-no-changes # match the code style (run `dotnet format` to fix)
|
||||
```
|
||||
|
||||
See [BUILD.md](../BUILD.md) for publish/packaging.
|
||||
See [BUILD.md](../BUILD.md) for packaging and CI.
|
||||
|
||||
## Reporting issues
|
||||
|
||||
- Use the issue templates (Bug report / Feature request).
|
||||
- **Get straight to the point**: what you expected, what happened, exact steps, your Windows
|
||||
version/build and the app version (Settings → About).
|
||||
version/build and the app version (**More → About** in the app).
|
||||
- For **security vulnerabilities, do NOT open a public issue** — see [SECURITY.md](SECURITY.md).
|
||||
- Questions and ideas: [Discussions](https://github.com/poli0981/CommandForge/discussions), or
|
||||
email [code@poli0981.dev](mailto:code@poli0981.dev).
|
||||
|
||||
## Pull requests
|
||||
|
||||
- Keep PRs **focused and small**; one logical change per PR.
|
||||
- Match existing style; run `dotnet format` and keep the build at **0 warnings**.
|
||||
- Match existing style; run `dotnet format` and keep the build at **0 warnings** (analyzers,
|
||||
including SonarAnalyzer, run as part of the build).
|
||||
- **Don't delete or disable tests** to make CI pass; add tests for new behavior.
|
||||
- **Adding a command?** Add it to the catalog JSON (`Infrastructure/Catalog/commands.json`) per
|
||||
the schema, add the EN/VI resource strings, and keep `requiresAdmin`/`dangerLevel` accurate.
|
||||
Never add a code path that runs arbitrary commands or self-elevates outside the vetted catalog.
|
||||
- **Sign your commits** (GPG, SSH or S/MIME) — `main` only accepts verified signatures. Commit
|
||||
messages follow [Conventional Commits](https://www.conventionalcommits.org/)
|
||||
(`fix(catalog): …`, `feat(ui): …`).
|
||||
- PRs need the required checks to pass: `build`, `package`, CodeQL (`Analyze (csharp)`,
|
||||
`Analyze (actions)`) and `dependency-review`.
|
||||
- **Dependencies:** package versions live in each `.csproj` (GitHub's dependency graph doesn't read
|
||||
`Directory.Packages.props`). Discuss a new package before adding it; runtime dependencies must be
|
||||
GPLv3-compatible (dependency review enforces a license allow-list).
|
||||
- **UI text** goes in the `.resx` files, never hardcoded, and every key needs a value in all five
|
||||
languages: `Strings.resx` (English), `Strings.vi.resx`, `Strings.ja.resx`, `Strings.zh-Hans.resx`
|
||||
and `Strings.es.resx`. A test fails when a key the UI uses is missing from any of them.
|
||||
Machine-translated text is fine if you say so; native-speaker fixes are very welcome.
|
||||
- **Disclose AI assistance.** AI-assisted contributions are welcome — just say so in the PR
|
||||
description.
|
||||
|
||||
### Adding a command
|
||||
|
||||
Commands live only in the embedded catalog,
|
||||
`src/CommandForge.Infrastructure/Catalog/commands.json`. Never add a code path that runs arbitrary
|
||||
commands or elevates outside the vetted catalog.
|
||||
|
||||
- Give it a unique `id`, a `categoryId` from `categories.json`, and `titleKey`/`descriptionKey`
|
||||
strings in all five languages.
|
||||
- Keep `requiresAdmin` and `dangerLevel` accurate:
|
||||
- **Safe** — no risk of losing data: read-only queries, opening a tool or settings page, or a
|
||||
small preference change that is undone the same way it was made.
|
||||
- **Caution** — changes system state (services, registry, caches, boot-time checks);
|
||||
recoverable, but undoing it may take effort.
|
||||
- **Dangerous** — may lose data, remove a rollback option or leave Windows unstable.
|
||||
|
||||
Caution and Dangerous commands need `"confirmBeforeRun": true`.
|
||||
- `executable` is a plain program name (it is resolved to a trusted absolute path). PowerShell
|
||||
commands must pass `-NoProfile -NonInteractive`.
|
||||
- Use the `{SystemDrive}`, `{SystemRoot}` and `{UserProfile}` placeholders instead of hard-coded
|
||||
paths or `%VARIABLES%`.
|
||||
- Use `minOsBuild` / `maxOsBuild` for commands that only exist on some Windows builds, and
|
||||
`revertCommandId` when another catalog command undoes this one.
|
||||
- The `icon` name must be mapped in `src/CommandForge.Wpf/Converters/IconMap.cs`.
|
||||
|
||||
The catalog tests check these rules, and the app's loader rejects invalid records.
|
||||
|
||||
## AI-assisted contributions
|
||||
|
||||
AI tools are welcome for writing and reviewing changes **when disclosed**. What is *not*
|
||||
@@ -63,7 +103,8 @@ ban — no exceptions:
|
||||
## Conduct
|
||||
|
||||
By participating you agree to the [Code of Conduct](CODE_OF_CONDUCT.md). Be respectful; do not
|
||||
use the project or its spaces to attack, insult, or harass others.
|
||||
use the project or its spaces to attack, insult, or harass others. Report problems to
|
||||
[code@poli0981.dev](mailto:code@poli0981.dev).
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ body:
|
||||
id: app-version
|
||||
attributes:
|
||||
label: CommandForge version
|
||||
description: Settings → About (e.g. 1.0.0)
|
||||
description: More (⋯) → About, or Settings → About (e.g. 2.0.0)
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
|
||||
@@ -15,7 +15,9 @@ Do NOT delete tests or use --no-verify to bypass hooks.
|
||||
|
||||
- [ ] `dotnet build -c Release` passes with **0 warnings**
|
||||
- [ ] `dotnet test` passes (and I added/updated tests for new behavior)
|
||||
- [ ] `dotnet format` applied; no unrelated reformatting
|
||||
- [ ] `dotnet format --verify-no-changes` passes; no unrelated reformatting
|
||||
- [ ] No tests deleted/disabled; hooks not bypassed (`--no-verify` not used)
|
||||
- [ ] If I added a command: it's a vetted catalog entry with correct `requiresAdmin`/`dangerLevel`, EN+VI strings, and no arbitrary-execution path
|
||||
- [ ] My commits are signed (`main` requires verified signatures)
|
||||
- [ ] New or changed UI text is in all five `Strings*.resx` files (EN, VI, JA, zh-Hans, ES) — no hardcoded strings
|
||||
- [ ] If I added a command: it's a vetted catalog entry with correct `requiresAdmin`/`dangerLevel`, strings in all five languages, and no arbitrary-execution path
|
||||
- [ ] **AI disclosure:** I have disclosed any AI assistance used (delete if none)
|
||||
+81
-25
@@ -1,48 +1,104 @@
|
||||
# Security Policy
|
||||
|
||||
CommandForge runs system-level commands, some elevated, so security is a top priority.
|
||||
CommandForge runs system-level commands, some as administrator, so security is a top priority.
|
||||
|
||||
## Supported versions
|
||||
|
||||
| Version | Supported |
|
||||
|---|---|
|
||||
| 2.0.x (latest) | ✅ |
|
||||
| < 2.0 | ❌ — please update |
|
||||
|
||||
Only the **latest release** receives security fixes. Please update before reporting.
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
**Do not open a public issue for security vulnerabilities.**
|
||||
**Do not open a public issue for security vulnerabilities.** Report privately in either of these ways:
|
||||
|
||||
Use **[GitHub private vulnerability reporting](https://github.com/poli0981/CommandForge/security/advisories/new)**
|
||||
(Security → Advisories → Report a vulnerability). Include:
|
||||
- **[GitHub private vulnerability reporting](https://github.com/poli0981/CommandForge/security/advisories/new)**
|
||||
(Security → Advisories → Report a vulnerability) — preferred, or
|
||||
- **email: [security@poli0981.dev](mailto:security@poli0981.dev)**.
|
||||
|
||||
- affected version (Settings → About),
|
||||
Please include:
|
||||
|
||||
- the affected version (More → About in the app),
|
||||
- steps to reproduce,
|
||||
- impact.
|
||||
- the impact you observed or expect.
|
||||
|
||||
We aim to acknowledge reports within a reasonable time and will credit reporters who wish to be
|
||||
named. Please give us a reasonable window to fix before any public disclosure.
|
||||
named. Please give us a reasonable window to fix the issue before any public disclosure.
|
||||
|
||||
## Security model (summary)
|
||||
## Security model
|
||||
|
||||
- **Vetted, read-only catalog.** Every runnable command is in an embedded, maintainer-reviewed
|
||||
catalog. The app never loads arbitrary commands from files/users/network and self-elevates.
|
||||
- **Least privilege.** The UI runs `asInvoker` (non-elevated). Only a separate `Elevator` helper
|
||||
runs as Administrator, and only when needed (one UAC prompt per session). The Elevator accepts
|
||||
only a `commandId` validated against its own embedded catalog — never an arbitrary command
|
||||
string over the pipe.
|
||||
- **Transparency.** The exact command line is shown before it runs.
|
||||
- **No telemetry.** The only network call is the GitHub update check.
|
||||
CommandForge guards the line between your normal (non-elevated) session and administrator rights:
|
||||
no file, setting, network response or other program running as you should be able to decide what
|
||||
runs elevated.
|
||||
|
||||
## Code signing & distribution integrity
|
||||
- **Vetted, read-only catalog.** Every command that can run as administrator is in a catalog that
|
||||
is built into the app and reviewed by the maintainer. The app never loads catalog commands from
|
||||
files, users or the network. When the catalog loads, contradictory or unsafe records are rejected
|
||||
(for example, unknown placeholders, or a Caution/Dangerous command without a confirmation).
|
||||
- **Least privilege.** The UI runs as the invoking user (`asInvoker`). Admin commands go to a
|
||||
separate helper, `CommandForge.Elevator`, which starts with one UAC prompt per session; you can
|
||||
end the session at any time. The helper accepts only a **command ID**, which it looks up in its
|
||||
own copy of the catalog — never a command line.
|
||||
- **Authenticated channel.** The named pipe has a random name and an access list for your account
|
||||
only, and each end verifies the other: the app accepts only the helper process it launched, and
|
||||
the helper serves only `CommandForge.Wpf.exe` from its own folder. The helper connects with
|
||||
Identification-level impersonation and writes no files; its diagnostics travel back to the app's
|
||||
log through the pipe.
|
||||
- **Trusted paths and environment.** Catalog programs resolve to absolute paths in `System32` or
|
||||
the Windows folder, never through a search of the per-user app folder. Elevated commands get an
|
||||
environment rebuilt from trusted sources (the system directory, known folders, HKLM), so per-user
|
||||
variables such as `PSModulePath`, `COR_PROFILER`, `SystemRoot` or `windir` can't redirect what an
|
||||
elevated command loads or deletes. The `{SystemDrive}`, `{SystemRoot}` and `{UserProfile}`
|
||||
placeholders in the catalog are filled from the same trusted values, and PowerShell always runs
|
||||
with `-NoProfile -NonInteractive`. The helper ignores `DOTNET_STARTUP_HOOKS`.
|
||||
- **Your own commands stay unprivileged.** Commands you add under *My commands* are stored apart
|
||||
from the catalog and always run without administrator rights.
|
||||
- **Transparency and confirmation.** The exact command line is shown before it runs. Caution
|
||||
commands ask first; Dangerous commands require typing the command's name or ID, and that check
|
||||
can't be turned off. A System Restore Point can be created first.
|
||||
- **Containment.** Commands whose output is captured run in a kill-on-close job object, so closing
|
||||
or crashing the app doesn't leave them running.
|
||||
- **No telemetry.** The only network connection the app makes is the GitHub update check (see
|
||||
[PRIVACY.md](../PRIVACY.md)).
|
||||
|
||||
Releases are **not code-signed yet**, so SmartScreen may warn "unknown publisher" and some AV
|
||||
engines may show false positives (common for admin tools). Mitigations:
|
||||
### Known limitations
|
||||
|
||||
- We **do not obfuscate** (obfuscation is a leading cause of AV false positives).
|
||||
- Every release publishes **SHA-256 checksums** (`checksums.txt`) and a **VirusTotal** link in the
|
||||
release notes.
|
||||
- The source is public (GPLv3) and CI runs **CodeQL** on every change.
|
||||
- **Per-user installation.** Velopack installs the app under `%LocalAppData%\CommandForge`, a
|
||||
folder your account can write to. Malware already running as you could replace the app's files —
|
||||
including the elevated helper — and wait for you to approve the next UAC prompt. This applies to
|
||||
every per-user app (UAC does not separate programs running as the same user), and since releases
|
||||
aren't Authenticode-signed yet, the UAC prompt can't show a verified publisher either. Keep
|
||||
untrusted software off your account, and approve the prompt only right after you started an
|
||||
admin command and it names `CommandForge.Elevator`.
|
||||
- **winget** is an App Execution Alias in `%LocalAppData%\Microsoft\WindowsApps`, another per-user
|
||||
folder. The catalog's winget commands start it from there, including the ones that run as
|
||||
administrator, so the same caveat applies.
|
||||
- **Commands do what they say.** Commands you choose to run can change system settings, use the
|
||||
network (winget, DNS tests…) or delete data by design; read the preview and see
|
||||
[DISCLAIMER.md](../DISCLAIMER.md).
|
||||
|
||||
Code signing (Azure Trusted Signing, or SignPath Foundation for OSS) is planned for a future
|
||||
release.
|
||||
## Distribution integrity
|
||||
|
||||
Releases are **not Authenticode-signed yet**, so SmartScreen may warn about an unknown publisher
|
||||
and some antivirus engines may show false positives (common for admin tools). Instead:
|
||||
|
||||
- Every release is built by GitHub Actions from a tagged commit and carries **build-provenance
|
||||
attestations** for the installer and packages. Verify a download with
|
||||
`gh attestation verify <file> --repo poli0981/CommandForge`.
|
||||
- **SHA-256 checksums** (`checksums.txt`), an **SPDX SBOM** (`sbom.spdx.json`) and **VirusTotal**
|
||||
scan links come with every release.
|
||||
- The code is **not obfuscated** (obfuscation is a leading cause of false positives), and the
|
||||
source is public under the GPLv3.
|
||||
- CI runs **CodeQL** (C# and GitHub Actions), **dependency review**, **OpenSSF Scorecard**,
|
||||
**SonarCloud** and **Snyk**; every restore audits direct and transitive NuGet packages;
|
||||
Dependabot keeps dependencies and the SHA-pinned actions current; `main` only accepts pull
|
||||
requests that pass the required checks.
|
||||
|
||||
Code signing (Azure Trusted Signing, or SignPath Foundation for open source) is planned for a
|
||||
future release.
|
||||
|
||||
## Malicious contributions
|
||||
|
||||
|
||||
@@ -3,12 +3,20 @@
|
||||
## Requirements
|
||||
|
||||
- Windows 10 (22H2) or Windows 11
|
||||
- **.NET 10 SDK** (`dotnet --version` → `10.0.x`)
|
||||
- For packaging: the **Velopack CLI** — `dotnet tool install -g vpk`
|
||||
- **.NET 10 SDK** — the feature band is pinned in `global.json` (`dotnet --version` → `10.0.4xx`)
|
||||
- Admin rights are only needed to **test** elevated commands, not to build.
|
||||
|
||||
The solution file is **`CommandForge.slnx`** (the XML solution format).
|
||||
|
||||
| Project | Role |
|
||||
|---|---|
|
||||
| `src/CommandForge.Domain` | Entities; no dependencies |
|
||||
| `src/CommandForge.Application` | Use cases and ports; depends only on Domain |
|
||||
| `src/CommandForge.Infrastructure` | Processes, registry, catalog, storage, Velopack, logging |
|
||||
| `src/CommandForge.Wpf` | The WPF app (WPF-UI); namespace `CommandForge.Desktop` |
|
||||
| `helper/CommandForge.Elevator` | The elevated helper that runs admin commands over a named pipe |
|
||||
| `tests/CommandForge.Tests` | xUnit v3 tests |
|
||||
|
||||
## Build, run, test
|
||||
|
||||
```bash
|
||||
@@ -18,42 +26,80 @@ dotnet run --project src/CommandForge.Wpf
|
||||
dotnet test CommandForge.slnx
|
||||
```
|
||||
|
||||
## Code style
|
||||
The tests use xUnit v3 in VSTest mode (`xunit.v3.mtp-off`), so `dotnet test` and the coverlet
|
||||
collector work as usual.
|
||||
|
||||
## Code style and analysis
|
||||
|
||||
```bash
|
||||
dotnet format CommandForge.slnx # apply formatting
|
||||
dotnet format CommandForge.slnx --verify-no-changes # CI gate
|
||||
```
|
||||
|
||||
The build enforces analyzers as errors (`TreatWarningsAsErrors`, `EnforceCodeStyleInBuild`),
|
||||
including unused-using/unused-member rules.
|
||||
The build treats warnings as errors and enforces the .NET analyzers, code style
|
||||
(`EnforceCodeStyleInBuild`) and **SonarAnalyzer.CSharp** (the same rules SonarCloud applies),
|
||||
including unused-using and unused-member rules.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- Package versions live in **each `.csproj`**; SonarAnalyzer is referenced once from
|
||||
`Directory.Build.props`. Central Package Management is deliberately not used: GitHub's dependency
|
||||
graph (Dependabot alerts, dependency review, the release SBOM) doesn't read
|
||||
`Directory.Packages.props`.
|
||||
- Every restore runs a **NuGet audit** of direct and transitive packages; moderate or higher
|
||||
advisories fail the build.
|
||||
- Dependabot groups updates (Velopack and the `vpk` tool move together) with a cooldown.
|
||||
|
||||
## Publish (self-contained) + package
|
||||
|
||||
The Velopack CLI is pinned as a local tool in `.config/dotnet-tools.json`, at the same version as
|
||||
the Velopack library:
|
||||
|
||||
```bash
|
||||
# One-step helper (publish + vpk pack):
|
||||
pwsh ./scripts/pack.ps1 -Version 0.3.0
|
||||
dotnet tool restore
|
||||
pwsh ./scripts/pack.ps1 -Version 2.0.0 # publish + vpk pack
|
||||
pwsh ./scripts/pack.ps1 -Version 2.0.0 -SkipPack # publish only
|
||||
```
|
||||
|
||||
`pack.ps1` runs a self-contained `win-x64` publish (stamping the assembly version so the in-app
|
||||
version matches the release) and then `vpk pack`. It writes these artifacts to `Releases/`:
|
||||
`pack.ps1` (parameters: `-Version`, `-Runtime` = `win-x64`, `-Configuration` = `Release`,
|
||||
`-SkipPack`):
|
||||
|
||||
- runs a self-contained **ReadyToRun** publish, stamping the version so the in-app version matches
|
||||
the release;
|
||||
- checks that `CommandForge.Elevator` is in the publish folder (the
|
||||
`PublishElevatorOnPublish` target in `src/CommandForge.Wpf/CommandForge.Wpf.csproj` publishes it
|
||||
alongside the app);
|
||||
- runs `vpk pack` with `--runtime`, so the installer and updater helpers are native x64, and stops
|
||||
on any non-zero exit code.
|
||||
|
||||
It writes these artifacts to `Releases/`:
|
||||
|
||||
- `CommandForge-win-Setup.exe` — the installer
|
||||
- `CommandForge-<version>-full.nupkg` — full package
|
||||
- `CommandForge-<version>-delta.nupkg` — delta package (only when a previous full is present)
|
||||
- `CommandForge-<version>-delta.nupkg` — delta package (only when a previous full package is
|
||||
present; see [UPDATES.md](UPDATES.md))
|
||||
- `releases.win.json` / `RELEASES` — the update manifest read by the app
|
||||
|
||||
The `CommandForge.Elevator` helper is published into the same folder automatically (see the
|
||||
`PublishElevatorOnPublish` target in `src/CommandForge.Wpf/CommandForge.Wpf.csproj`).
|
||||
|
||||
> No code signing yet — see [SECURITY.md](.github/SECURITY.md). Don't add a signing step until
|
||||
> Azure Trusted Signing (or SignPath Foundation for OSS) is set up.
|
||||
> No Authenticode signing yet — see [SECURITY.md](.github/SECURITY.md). Don't add a signing step
|
||||
> until Azure Trusted Signing (or SignPath Foundation for OSS) is set up.
|
||||
|
||||
## CI
|
||||
|
||||
- **`build.yml`** — restore + `dotnet format --verify-no-changes` + Release build + tests on every
|
||||
PR/push to `main` (Windows).
|
||||
- **`codeql.yml`** — CodeQL C# analysis (Windows, builds `CommandForge.slnx`).
|
||||
- **`release.yml`** — see [RELEASING.md](RELEASING.md).
|
||||
All workflows pin actions to full commit SHAs and use least-privilege permissions.
|
||||
|
||||
| Workflow | What it does |
|
||||
|---|---|
|
||||
| `build.yml` | `build`: restore, `dotnet format --verify-no-changes`, Release build, tests (results and coverage uploaded). `package`: publish and `vpk pack` exactly like a release. |
|
||||
| `codeql.yml` | CodeQL for C# (Windows, manual build) and for the workflows themselves (`actions`). |
|
||||
| `dependency-review.yml` | Fails a PR that adds a dependency with a moderate+ vulnerability or a license outside the GPLv3-compatible allow-list. |
|
||||
| `scorecard.yml` | OpenSSF Scorecard, reported to code scanning. |
|
||||
| `release.yml` | Tag-triggered release — see [RELEASING.md](RELEASING.md). |
|
||||
| `notify-ci-failure.yml` | Posts a Discord alert when the Build workflow fails on `main` (needs the `DISCORD_CI_WEBHOOK` secret). |
|
||||
|
||||
SonarCloud (Automatic Analysis, scoped by `.sonarcloud.properties`) and Snyk also check every PR.
|
||||
|
||||
`main` is protected by a repository ruleset: changes land through pull requests; `build`,
|
||||
`package`, `Analyze (csharp)`, `Analyze (actions)` and `dependency-review` must pass; and a PR
|
||||
can't introduce CodeQL errors or high-severity security alerts.
|
||||
|
||||
See [UPDATES.md](UPDATES.md) for how auto-update works.
|
||||
+108
-1
@@ -7,6 +7,111 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.0.0] — 2026-10-21
|
||||
|
||||
A redesign in the Fluent style of Windows 11, plus a broad safety, reliability and security
|
||||
overhaul. Settings, favorites, history, recipes and your own commands carry over unchanged.
|
||||
|
||||
### Added
|
||||
- **Fluent UI (WPF-UI 4.3).** A Mica window with its own title bar, a navigation pane (Home,
|
||||
Favorites, History, Recipes, My commands and the catalog with its 12 categories and counts; Log
|
||||
viewer, Debug panel and Settings at the bottom), in-window dialogs, snackbar notifications and
|
||||
the Windows accent color. Light, dark or system theme; High Contrast always wins.
|
||||
- **Resizable window** (minimum 960×600, default 1200×780) that remembers its size, position and
|
||||
maximized state, and never reopens off-screen.
|
||||
- **Title bar:** a search box for the whole catalog (`Ctrl+K`), an admin-session indicator with
|
||||
**End admin session**, and a **More** menu (Command Palette, Check for updates, Create System
|
||||
Restore Point, export logs, open the config and log folders, keyboard shortcuts, user guide,
|
||||
report a bug, terms, About).
|
||||
- **Catalog:** filter chips for Safe / Caution / Dangerous and Admin only, the estimated duration,
|
||||
the command line with paths filled in, and a splitter between the details and the console.
|
||||
- **Console:** one shared console for the catalog, recipes and your own commands — virtualized,
|
||||
capped at 10,000 lines (with an "N earlier lines" note), **Copy all output**, **Save output to a
|
||||
file**, a "Waiting for administrator permission…" status, and **Restart now** (asks first,
|
||||
never while a command runs).
|
||||
- A finished run shows a notification and flashes the taskbar button when the console isn't
|
||||
visible; the taskbar button shows progress while a command runs.
|
||||
- The Legal Gate lets you choose the app language before reading the terms.
|
||||
- **20 new commands** (catalog grew from 241 to 261): restore point list, System Restore, Automatic
|
||||
Maintenance, clock resync, DNS cache, listening ports, Wi-Fi interface details, third-party
|
||||
scheduled tasks, Run keys, stopped automatic services, Windows Search restart, Store and optional
|
||||
updates, UAC status, Core isolation, environment variables, WSL status, TRIM status, crash dumps
|
||||
and battery charge.
|
||||
- A **user guide** ([USAGE.md](USAGE.md)), linked from the More menu and About. About also lists
|
||||
contact addresses for security reports and code questions.
|
||||
- **Release integrity:** build-provenance attestations (`gh attestation verify`), an SPDX SBOM and
|
||||
SHA-256 checksums are attached to every release.
|
||||
|
||||
### Changed
|
||||
- **One set of safety rules.** Dangerous commands always ask with typing; Caution commands ask
|
||||
unless you turn that off; a restore point is offered only for risky admin commands (or commands
|
||||
flagged for one), so per-user tweaks no longer trigger a UAC prompt for it.
|
||||
- **Type-to-confirm** accepts the command name regardless of case and Unicode form, or the command
|
||||
ID, so Vietnamese input methods and Japanese/Chinese IMEs can confirm. Cancel is the default.
|
||||
- **Recipes** no longer run Dangerous steps after a single Yes/No: an overview prompt is followed
|
||||
by each risky step's own confirmation, with one restore point before the chain.
|
||||
- **Search** returns relevant matches only (descriptions and tags must contain your words), ranks
|
||||
titles better, highlights the right letters and ignores accents ("don dep" finds "Dọn dẹp").
|
||||
- **Catalog safety and accuracy:**
|
||||
- Automatic Disk Cleanup uses its own allow-list of safe handlers, so Downloads, the Recycle
|
||||
Bin and Windows.old are never touched and your own `/sageset:1` choices are kept.
|
||||
- Removing Windows.old and clearing the event logs are now Dangerous.
|
||||
- Drive repair uses `Repair-Volume -OfflineScanAndFix`; drive letters and profile paths come
|
||||
from your actual system drive and profile.
|
||||
- PowerShell commands run with `-NoProfile -NonInteractive` and stop at the first error instead
|
||||
of always printing success; cleanups report what they removed and what was in use.
|
||||
- winget never prompts; activation status no longer needs VBScript; the Windows 11 Widgets
|
||||
button opens Settings, because Windows now blocks that change from scripts.
|
||||
- Switching the language changes only the app's text; number and date formats keep following
|
||||
your regional settings.
|
||||
- **Logs:** 14 daily files of at most 10 MB each (they grew without limit before). Every run is
|
||||
logged as a one-line summary (ID, exit code, duration), never with its output.
|
||||
- Faster startup: ReadyToRun publish and no Generic Host (about 20 fewer packages).
|
||||
- Font size now scales every text and control live.
|
||||
|
||||
### Removed
|
||||
- MaterialDesignThemes, Microsoft.Extensions.Hosting and Serilog.Extensions.Hosting.
|
||||
|
||||
### Fixed
|
||||
- **Garbled output** from `sfc`, `wsl` and other native tools on non-English Windows: output is
|
||||
decoded as UTF-16, UTF-8 or the OEM code page, whichever it is.
|
||||
- The console could stay "running" forever when a run failed or was cancelled while the admin
|
||||
helper was starting.
|
||||
- A failed startup left an invisible process holding the single-instance lock, so every later
|
||||
launch silently did nothing. The app now shows an error and exits.
|
||||
- Settings, history, recipes, profiles and your commands are saved atomically. A damaged file is
|
||||
kept as a backup instead of silently resetting everything (including the accepted terms).
|
||||
- **Updates:** closing the update dialog with X cancels the download; the app no longer restarts
|
||||
mid-command to apply an update; timeouts and other errors are reported instead of leaving the
|
||||
dialog on "Checking".
|
||||
- **Restore points:** "Windows already made one in the last 24 hours" is reported as skipped, not
|
||||
as created; any other failure asks before running the command anyway.
|
||||
- **Keyboard:** AltGr no longer triggers shortcuts (typing "@" on a German keyboard closed the
|
||||
app); `Ctrl+B` toggles the navigation pane as advertised.
|
||||
- History's Run again and Undo are disabled while a command runs; runs that never started are not
|
||||
recorded.
|
||||
- My commands: a quoted `cmd` is recognized and `/c` is no longer added twice.
|
||||
- Exporting logs or settings to a locked path, or opening a link with no browser set up, shows a
|
||||
message instead of the crash dialog. Imported settings files are validated.
|
||||
- Crash support codes stay the same across runs.
|
||||
- The Log Viewer refreshes once per burst of log events instead of once per event.
|
||||
|
||||
### Security
|
||||
- Catalog programs resolve to absolute paths in System32/Windows, so a program planted in the
|
||||
app's per-user folder can't run elevated; Launch commands pin their working directory.
|
||||
- Elevated commands get an environment rebuilt from trusted sources: per-user variables such as
|
||||
`PSModulePath`, `COR_PROFILER`, `SystemRoot` and `windir` can no longer redirect what an elevated
|
||||
command loads or deletes. The elevated helper ignores `DOTNET_STARTUP_HOOKS`.
|
||||
- The app and the elevated helper verify each other's process on the named pipe; the helper
|
||||
connects with Identification-level impersonation and no longer writes files.
|
||||
- Captured commands run in a kill-on-close job object.
|
||||
- The catalog loader registers a command only after it passes validation; contradictory or unsafe
|
||||
records are rejected.
|
||||
- **CI and supply chain:** actions pinned to commit SHAs with least-privilege permissions, CodeQL
|
||||
for C# and GitHub Actions, dependency review, OpenSSF Scorecard, a NuGet audit of transitive
|
||||
packages, SonarAnalyzer rules enforced at build time, and a protected `main` branch with
|
||||
required checks.
|
||||
|
||||
## [1.5.1] — 2026-07-09
|
||||
|
||||
### Fixed
|
||||
@@ -155,7 +260,9 @@ Initial public release.
|
||||
checksums (and an optional VirusTotal scan). No telemetry — the only network use is checking
|
||||
GitHub for updates.
|
||||
|
||||
[Unreleased]: https://github.com/poli0981/CommandForge/compare/v1.5.0...HEAD
|
||||
[Unreleased]: https://github.com/poli0981/CommandForge/compare/v2.0.0...HEAD
|
||||
[2.0.0]: https://github.com/poli0981/CommandForge/compare/v1.5.1...v2.0.0
|
||||
[1.5.1]: https://github.com/poli0981/CommandForge/compare/v1.5.0...v1.5.1
|
||||
[1.5.0]: https://github.com/poli0981/CommandForge/compare/v1.4.0...v1.5.0
|
||||
[1.4.0]: https://github.com/poli0981/CommandForge/compare/v1.3.0...v1.4.0
|
||||
[1.3.0]: https://github.com/poli0981/CommandForge/compare/v1.2.0...v1.3.0
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
3. **Khởi động lại:** Phát hiện cần reboot bằng **exit code `3010`** (`ERROR_SUCCESS_REBOOT_REQUIRED`), không chỉ parse text.
|
||||
4. **Ranh giới kiến trúc:** `Domain` không phụ thuộc gì. `Application` chỉ phụ thuộc `Domain`. `Infrastructure`/`Wpf` hiện thực các interface của `Application`. **Không bao giờ** để `Domain`/`Application` tham chiếu WPF hay Win32.
|
||||
5. **Không obfuscate.** Mã GPLv3 vốn công khai; obfuscate vừa vô nghĩa vừa gây false-positive antivirus.
|
||||
6. **Hiện chưa ký số** (sẽ thêm Azure Trusted Signing sau — xem `docs/Build.md`). Đừng thêm bước ký vào build/CI lúc này.
|
||||
6. **Hiện chưa ký số Authenticode** (sẽ thêm Azure Trusted Signing/SignPath sau — xem `docs/Build.md`). Đừng thêm bước ký Authenticode vào build/CI lúc này. Attestation build-provenance (Sigstore, `actions/attest-build-provenance`), SBOM và checksums trong `release.yml` là được phép và phải giữ.
|
||||
7. **Không telemetry.** Mạng duy nhất được phép: gọi GitHub để kiểm tra cập nhật. Bất kỳ thu thập dữ liệu nào khác đều bị cấm (vi phạm `docs/Privacy.md`).
|
||||
8. **Xác nhận trước lệnh nguy hiểm.** Lệnh `Caution`/`Dangerous` phải có hộp thoại xác nhận; không cho phép tắt xác nhận với nhóm `Dangerous`.
|
||||
|
||||
@@ -29,11 +29,12 @@
|
||||
|
||||
## 3. Tech stack (tóm tắt — chi tiết ở `docs/tech.md`)
|
||||
|
||||
- **.NET 10 (LTS), C# 14** · **WPF** + **Material Design In XAML**
|
||||
- **CommunityToolkit.Mvvm** (MVVM) · **Microsoft.Extensions.DependencyInjection/Hosting** (DI)
|
||||
- **.NET 10 (LTS), C# 14** · **WPF** + **WPF-UI 4.3** (Fluent, lepoco) — đã thay Material Design từ v2.0.0
|
||||
- **CommunityToolkit.Mvvm** (MVVM) · **Microsoft.Extensions.DependencyInjection** (`ServiceCollection` + `ValidateOnBuild`; **không** dùng Generic Host)
|
||||
- **CsWin32** (P/Invoke) · **Serilog** (logging) · `System.Threading.Channels`
|
||||
- **Velopack** (`vpk`) cho cài đặt + cập nhật qua GitHub Releases
|
||||
- i18n: `.resx` (EN/VI)
|
||||
- **Velopack** (`vpk` pin làm local tool trong `.config/dotnet-tools.json`) cho cài đặt + cập nhật qua GitHub Releases
|
||||
- Test: **xUnit v3** (`xunit.v3.mtp-off`, chạy qua VSTest) · **SonarAnalyzer.CSharp** chạy trong build
|
||||
- i18n: `.resx` 5 ngôn ngữ (EN/VI/JA/zh-Hans/ES)
|
||||
|
||||
---
|
||||
|
||||
@@ -44,7 +45,7 @@ src/
|
||||
CommandForge.Domain/ # entities thuần
|
||||
CommandForge.Application/ # use-cases + interfaces (ports)
|
||||
CommandForge.Infrastructure/ # Process, registry, Velopack, GitHub, Serilog
|
||||
CommandForge.Wpf/ # View + ViewModel + DI bootstrap + .resx
|
||||
CommandForge.Wpf/ # View + ViewModel + DI bootstrap + .resx (namespace: CommandForge.Desktop)
|
||||
helper/
|
||||
CommandForge.Elevator/ # tiến trình phụ chạy lệnh Admin (named pipe)
|
||||
tests/
|
||||
@@ -60,16 +61,22 @@ dotnet restore
|
||||
dotnet build -c Debug
|
||||
dotnet run --project src/CommandForge.Wpf
|
||||
dotnet test
|
||||
# Phát hành + đóng gói:
|
||||
dotnet publish src/CommandForge.Wpf -c Release -r win-x64 --self-contained
|
||||
vpk pack --packId CommandForge --packVersion <ver> --packDir <publishDir>
|
||||
dotnet format CommandForge.slnx --verify-no-changes
|
||||
# Phát hành + đóng gói (publish ReadyToRun + vpk pack → Releases/):
|
||||
dotnet tool restore
|
||||
pwsh ./scripts/pack.ps1 -Version <ver>
|
||||
```
|
||||
|
||||
Phát hành thật: tag ký GPG `vX.Y.Z` trên `main` → `release.yml` (xem `RELEASING.md`).
|
||||
|
||||
---
|
||||
|
||||
## 6. Quy ước code (chi tiết ở `docs/codestyle.md`)
|
||||
|
||||
- Code, định danh, comment kỹ thuật: **tiếng Anh**. Chuỗi hiển thị cho người dùng: **`.resx` (EN/VI)** — không hardcode chuỗi UI.
|
||||
- Code, định danh, comment kỹ thuật: **tiếng Anh**. Chuỗi hiển thị cho người dùng: **`.resx` (EN/VI/JA/zh-Hans/ES)** — không hardcode chuỗi UI; mỗi key phải có ở cả 5 file (test `ResxKeyTests` quét UI để kiểm tra).
|
||||
- Namespace tầng giao diện là `CommandForge.Desktop` (project/assembly/exe vẫn tên `CommandForge.Wpf`): namespace `CommandForge.Wpf` che namespace gốc `Wpf` của WPF-UI trong code XAML sinh ra.
|
||||
- WPF-UI: mỗi trang (UserControl trong NavigationView) phải đặt `Foreground="{DynamicResource TextFillColorPrimaryBrush}"` ở gốc (Frame không truyền màu chữ xuống); lớp con của `ContentDialog` phải gọi `SetResourceReference(StyleProperty, typeof(ContentDialog))` — `XamlConventionsTests` kiểm tra cả hai. Cỡ chữ dùng `DynamicResource AppFontSize*`.
|
||||
- Version package đặt trong **từng `.csproj`** (không dùng Central Package Management — dependency graph của GitHub không đọc `Directory.Packages.props`).
|
||||
- Nullable reference types **bật**; `TreatWarningsAsErrors` **bật**; analyzers **bật**.
|
||||
- `async/await` xuyên suốt cho I/O; không `async void` (trừ event handler); luôn truyền `CancellationToken`.
|
||||
- MVVM bằng source-generator của CommunityToolkit (`[ObservableProperty]`, `[RelayCommand]`).
|
||||
@@ -80,7 +87,7 @@ vpk pack --packId CommandForge --packVersion <ver> --packDir <publishDir>
|
||||
|
||||
## 7. Bất biến quan trọng khi đụng tới các vùng nhạy cảm
|
||||
|
||||
- **Thêm lệnh mới:** chỉ thêm vào catalog JSON (`Infrastructure/Catalog/commands.json`) theo schema ở `docs/CatalogCommand.md`; thêm key chuỗi vào `.resx`; viết test validate catalog. **Catalog sẽ được bổ sung/cập nhật liên tục theo thời gian** — giữ schema ổn định, dễ mở rộng.
|
||||
- **Thêm lệnh mới:** chỉ thêm vào catalog JSON (`Infrastructure/Catalog/commands.json`) theo schema ở `docs/CatalogCommand.md`; thêm key chuỗi vào cả 5 file `.resx`; icon phải có trong `Converters/IconMap.cs`; PowerShell luôn `-NoProfile -NonInteractive`; dùng token `{SystemDrive}`/`{SystemRoot}`/`{UserProfile}` thay vì đường dẫn cứng; viết test validate catalog. **Catalog sẽ được bổ sung/cập nhật liên tục theo thời gian** — giữ schema ổn định, dễ mở rộng.
|
||||
- **Sửa luồng nâng quyền:** đọc kỹ `docs/Security.md` trước.
|
||||
- **Sửa luồng cập nhật:** xử lý đủ `404 / 403 / 429 / 5xx / offline` (KHÔNG có mã `419`).
|
||||
|
||||
@@ -93,7 +100,7 @@ vpk pack --packId CommandForge --packVersion <ver> --packDir <publishDir>
|
||||
| `docs/tech.md` | Tech stack, third-party (font, update…), phiên bản |
|
||||
| `docs/architectures.md` | Kiến trúc chi tiết, ports/adapters, elevation broker, threading |
|
||||
| `docs/codestyle.md` | Chuẩn code C#/XAML, `.editorconfig`, analyzers |
|
||||
| `docs/UI.md` | Đặc tả giao diện từng thành phần |
|
||||
| `docs/UI.md` | Đặc tả giao diện từng thành phần (Fluent / WPF-UI) |
|
||||
| `docs/CatalogCommand.md` | Toàn bộ lệnh + nhóm lệnh + schema |
|
||||
| `docs/roadmap.md` | Lộ trình theo phase, milestone, version |
|
||||
| `docs/note.md` | Ghi chú, quyết định, "gotcha", nhắc nhở |
|
||||
@@ -101,7 +108,11 @@ vpk pack --packId CommandForge --packVersion <ver> --packDir <publishDir>
|
||||
| `docs/Security.md` | Mô hình bảo mật, threat model, disclosure |
|
||||
| `docs/Build.md` | Build, test, publish, release, CI |
|
||||
| `docs/Testing.md` | Chiến lược kiểm thử |
|
||||
| `docs/Changelog.md` | Nhật ký thay đổi |
|
||||
| `LICENSE.md` / `Privacy.md` / `EULA.md` / `Disclaimer.md` | Pháp lý |
|
||||
| `docs/Changelog.md` | Chỉ trỏ về `CHANGELOG.md` (gốc repo) |
|
||||
| `docs/LICENSE.md` / `Privacy.md` / `EULA.md` / `Disclaimer.md` | Bản pháp lý nội bộ (bản công khai ở gốc repo là chuẩn) |
|
||||
|
||||
> ⚠️ Bộ tài liệu này nằm trong `.gitignore` (tài liệu nội bộ). Nếu sau này cần publish các file pháp lý (để Legal Gate trỏ link tới GitHub), tạo bản công khai riêng — xem `docs/note.md`.
|
||||
> ⚠️ Thư mục `docs/` nằm trong `.gitignore` (tài liệu nội bộ, chỉ có trên máy).
|
||||
|
||||
**Tài liệu công khai (ở gốc repo, được commit):** `README.md`, `USAGE.md` (hướng dẫn người dùng — link "User guide" trong app), `CHANGELOG.md`, `BUILD.md`, `RELEASING.md`, `UPDATES.md`, `PRIVACY.md`, `EULA.md`, `DISCLAIMER.md`, `THIRD-PARTY-NOTICES.md`, `MAINTAINERS.md`, `LICENSE`, và trong `.github/`: `SECURITY.md`, `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`. Legal Gate trỏ tới EULA/PRIVACY/DISCLAIMER/LICENSE công khai.
|
||||
|
||||
**Email liên hệ (@poli0981.dev):** `security@` (lỗ hổng, cùng GitHub private vulnerability reporting) · `privacy@` · `legal@` · `copyright@` / `dmca@` / `takedown@` (bản quyền, DMCA, yêu cầu gỡ bỏ khác) · `code@` (mã nguồn, đóng góp, báo cáo Code of Conduct) · `collab@` · `press@` · `sponsor@`. Không dùng `games@` cho dự án này.
|
||||
+24
-1
@@ -1,6 +1,6 @@
|
||||
# Disclaimer — CommandForge
|
||||
|
||||
> Last updated: 2026-06-18. This is not legal advice.
|
||||
> Last updated: 2026-10-21. This is not legal advice.
|
||||
|
||||
## ⚠️ Use at your own risk
|
||||
|
||||
@@ -52,3 +52,26 @@ please report translation problems via an issue.
|
||||
Command descriptions and documentation are provided in good faith but **may be incomplete or
|
||||
out of date** for some Windows versions. Command behavior can differ between Windows 10 and 11
|
||||
and across OS updates.
|
||||
|
||||
## Copyright and takedown requests
|
||||
|
||||
CommandForge's code and documentation are © poli0981 and contributors, licensed under the GPLv3.
|
||||
Third-party components keep their own licenses (see
|
||||
[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md)). If you believe something in this project
|
||||
infringes your rights, please contact us first so it can be corrected quickly:
|
||||
|
||||
- **Copyright questions** (attribution, licensing, permission requests):
|
||||
[copyright@poli0981.dev](mailto:copyright@poli0981.dev)
|
||||
- **DMCA notices:** [dmca@poli0981.dev](mailto:dmca@poli0981.dev). Include the details required by
|
||||
17 U.S.C. § 512(c)(3): the work, the material you believe infringes it and its location (URL),
|
||||
your contact details, a good-faith statement, a statement that the notice is accurate and that
|
||||
you are authorized to act, and your signature.
|
||||
- **Other takedown requests** (trademark, impersonation, unlawful content):
|
||||
[takedown@poli0981.dev](mailto:takedown@poli0981.dev)
|
||||
|
||||
Because the project is hosted on GitHub, you can also use GitHub's
|
||||
[DMCA Takedown Policy](https://docs.github.com/site-policy/content-removal-policies/dmca-takedown-policy).
|
||||
|
||||
## Contact
|
||||
|
||||
Other legal questions: [legal@poli0981.dev](mailto:legal@poli0981.dev).
|
||||
@@ -1,6 +1,6 @@
|
||||
# Terms of Use (EULA) — CommandForge
|
||||
|
||||
> Not legal advice. Last updated: 2026-06-18 · Version 1.1
|
||||
> Not legal advice. Last updated: 2026-10-21 · Version 1.1
|
||||
>
|
||||
> ⚠️ **Important:** CommandForge is licensed under the **GNU GPL v3** (see [LICENSE](LICENSE)).
|
||||
> **The GPLv3 governs your rights to the software.** This document does **not** restrict any
|
||||
@@ -58,3 +58,9 @@ trademark owner mentioned. All trademarks belong to their respective owners. See
|
||||
|
||||
By installing and using the software, you acknowledge that you have read, understood, and agree to
|
||||
this document and to the terms of the GPLv3.
|
||||
|
||||
## 8. Contact
|
||||
|
||||
Questions about these terms or licensing: **[legal@poli0981.dev](mailto:legal@poli0981.dev)**.
|
||||
For copyright, DMCA and other takedown notices, see
|
||||
[DISCLAIMER.md](DISCLAIMER.md#copyright-and-takedown-requests).
|
||||
@@ -4,5 +4,8 @@ CommandForge is currently maintained by:
|
||||
|
||||
- [@poli0981](https://github.com/poli0981) — author & maintainer
|
||||
|
||||
Contact: [code@poli0981.dev](mailto:code@poli0981.dev) for the code and contributions; see the
|
||||
[README](README.md#contact) for the other addresses (security, privacy, legal…).
|
||||
|
||||
Want to help maintain the project? Start by contributing (see
|
||||
[CONTRIBUTING.md](.github/CONTRIBUTING.md)); active, trusted contributors may be invited.
|
||||
+38
-21
@@ -1,41 +1,57 @@
|
||||
# Privacy Policy — CommandForge
|
||||
|
||||
> This is a plain-language summary, not legal advice. Last updated: 2026-06-18.
|
||||
> This is a plain-language summary, not legal advice. Last updated: 2026-10-21.
|
||||
|
||||
## Summary
|
||||
|
||||
**CommandForge does not collect, store on any server, or transmit any of your personal data.**
|
||||
The app runs entirely **locally** on your machine. The **only** network connection it makes is
|
||||
to GitHub, to check for and download software updates.
|
||||
The app runs entirely **locally** on your machine. The **only** network connection the app itself
|
||||
makes is to GitHub, to check for and download software updates.
|
||||
|
||||
## Data processed locally (never leaves your machine)
|
||||
## Data stored on your PC (never leaves your machine)
|
||||
|
||||
| Data | Location | Purpose |
|
||||
|---|---|---|
|
||||
| Settings (theme, language, font size, favorites, window placement, accepted-terms version) | `%AppData%\CommandForge\config.json` | Remember your preferences |
|
||||
| Application logs | `%AppData%\CommandForge\logs\` | Local troubleshooting |
|
||||
| Reports you generate (e.g. exported logs) | A folder you choose | Only when you ask for them |
|
||||
| Settings: theme, language, font size, safety and behavior options, log level, favorites, recent commands, window size and position, accepted-terms version | `%AppData%\CommandForge\config.json` | Remember your preferences |
|
||||
| Execution history: command ID, time, exit code, result, duration | `%AppData%\CommandForge\history.json` | The History page, Run again and Undo |
|
||||
| Recipes you create | `%AppData%\CommandForge\recipes.json` | Your saved command chains |
|
||||
| Commands you add under *My commands* | `%AppData%\CommandForge\user-commands.json` | Your own commands |
|
||||
| Saved settings profiles | `%AppData%\CommandForge\profiles.json` | Switching between profiles |
|
||||
| Application logs (at most 14 daily files of up to 10 MB each) | `%AppData%\CommandForge\logs\` | Local troubleshooting |
|
||||
| Backups of damaged files (`*.corrupt-<timestamp>.json`) | `%AppData%\CommandForge\` | So a damaged file is never silently lost |
|
||||
| Files you export: settings, logs (`.zip`), console output | A location you choose | Only when you ask for them |
|
||||
| The program itself | `%LocalAppData%\CommandForge\` | Installed app files (Velopack) |
|
||||
|
||||
This data stays on your device and is never sent to us or any third party.
|
||||
This data stays on your device and is never sent to us or to any third party. The history stores
|
||||
command IDs and results, not command output.
|
||||
|
||||
**Logs** record app events, errors, and a one-line summary of each command you run (its ID, exit
|
||||
code and duration). They don't contain the commands' output, but they may contain machine-specific
|
||||
details such as file paths, your user name or device names.
|
||||
|
||||
## Network connections
|
||||
|
||||
- **Update check:** the app contacts **GitHub** (releases API + asset download) to see whether a
|
||||
newer version exists and to fetch it. This is subject to
|
||||
[GitHub's Privacy Statement](https://docs.github.com/site-policy). We receive no identifying
|
||||
data from it.
|
||||
- The app makes **no other network connections**.
|
||||
- **Update check:** the app contacts **GitHub** (the releases API and asset downloads) when it
|
||||
starts, if *Check for updates on startup* is on (the default), and whenever you choose **Check
|
||||
for updates** (`F5`). As with any download, GitHub sees your IP address and the request; see
|
||||
[GitHub's Privacy Statement](https://docs.github.com/site-policy/privacy-policies/github-general-privacy-statement).
|
||||
We receive no data from it.
|
||||
- **Links you open** — GitHub, the user guide, the license, *Report a bug* — open in your browser.
|
||||
- The app makes **no other network connections**. Some **commands you choose to run** use the
|
||||
network by their nature (for example winget, DNS and connectivity tests, Windows Update); that
|
||||
traffic goes between Windows and those services, not to us.
|
||||
|
||||
## No telemetry / analytics
|
||||
|
||||
CommandForge contains **no** telemetry, analytics, advertising, or behavioral tracking of any kind.
|
||||
CommandForge contains **no** telemetry, analytics, advertising, crash uploading, or behavioral
|
||||
tracking of any kind.
|
||||
|
||||
## Commands you run
|
||||
## Bug reports
|
||||
|
||||
When you run a command, its output is shown in the app and may be written to the **local** log
|
||||
for troubleshooting. This output is never sent anywhere. If you export logs to file a bug report,
|
||||
**review the contents yourself before sharing** — logs may include machine-specific details
|
||||
(paths, device names) you may not wish to publish.
|
||||
*Report a bug* opens a pre-filled GitHub issue form in your browser with the app version, your
|
||||
Windows version and, after a crash, the error details. **Nothing is sent until you submit the form
|
||||
yourself**, and you can edit it first. If you attach exported logs, **review them before sharing**
|
||||
— they may include paths, user names or device names you may not wish to publish.
|
||||
|
||||
## Children
|
||||
|
||||
@@ -49,6 +65,7 @@ to review the terms again on startup.
|
||||
|
||||
## Contact
|
||||
|
||||
- Privacy questions: **[privacy@poli0981.dev](mailto:privacy@poli0981.dev)**
|
||||
- Security issues: see [SECURITY.md](.github/SECURITY.md) (security@poli0981.dev or private
|
||||
vulnerability reporting).
|
||||
- Repository: https://github.com/poli0981/CommandForge
|
||||
- Questions: open an issue, or use private vulnerability reporting for security matters
|
||||
(see [SECURITY.md](.github/SECURITY.md)).
|
||||
@@ -6,61 +6,90 @@
|
||||
CommandForge is an open-source Windows desktop app that wraps common system commands
|
||||
(winget, DISM, SFC, God Mode, registry tweaks, network reset, power plans, diagnostics…)
|
||||
in a visual, categorized interface. Every command is shown to you **before** it runs, with a
|
||||
clear danger level, optional confirmation, and an optional System Restore Point.
|
||||
clear danger level, a confirmation for anything risky, and an optional System Restore Point.
|
||||
|
||||
- **Windows 10 (22H2) and Windows 11**, x64.
|
||||
- **Open source, GPLv3.**
|
||||
- **Offline-first. No telemetry.** The only network call is to GitHub to check for updates.
|
||||
- **Offline-first. No telemetry.** The only network connection the app makes is to GitHub, to
|
||||
check for updates.
|
||||
- Installed and auto-updated with [Velopack](https://velopack.io/) (per-user, no UAC for updates).
|
||||
|
||||
> **Status:** pre‑1.0. Built by a solo developer with AI assistance (see
|
||||
> [Disclaimer](DISCLAIMER.md) and the AI disclosure below).
|
||||
> Built by a solo developer with AI assistance — see the [Disclaimer](DISCLAIMER.md) and the
|
||||
> AI disclosure below.
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- **Categorized command catalog** — browse by group (System & Maintenance, Updates & Packages,
|
||||
Tweaks & Shortcuts, Network, Cleanup, Power, System Info, Diagnostics, Security & Privacy,
|
||||
Developer) with fuzzy search and a Command Palette (`Ctrl+K`).
|
||||
- **Safe by design** — the command catalog is a vetted, read-only embedded resource. The app
|
||||
never loads arbitrary commands and self-elevates. Admin commands run through a separate
|
||||
elevation broker (one UAC prompt per session).
|
||||
- **See before you run** — the exact command line is previewed; `Caution`/`Dangerous` commands
|
||||
require confirmation (type-to-confirm for `Dangerous`), with an optional Restore Point.
|
||||
- **Real-time console** — stream output, cancel long-running commands, detect reboot-required
|
||||
(`exit 3010`).
|
||||
- **Home dashboard** — recent commands, pinned favorites, and a read-only system-status widget
|
||||
(Windows build, RAM, system drive, uptime).
|
||||
- **Polish** — light/dark/system theme, font scaling, live English/Vietnamese switching, a Log
|
||||
Viewer, a Debug panel, and a global crash handler with a "Report a bug" flow.
|
||||
- **261 vetted commands in 12 categories** — System & Maintenance, Updates & Packages, Tweaks &
|
||||
Shortcuts, Network, Cleanup, Power, System Info, Diagnostics, Security & Privacy, Developer,
|
||||
Storage, and Services & Startup. Commands that don't apply to your Windows build are hidden.
|
||||
- **Fluent design** — a Windows 11-style window (Mica, navigation pane, in-window dialogs) that
|
||||
follows your light/dark theme, accent color and High Contrast. It is resizable and remembers its
|
||||
size and position.
|
||||
- **Find anything fast** — accent-insensitive search (`Ctrl+F`), filters by danger level and admin
|
||||
rights, favorites, and a Command Palette over the whole catalog (`Ctrl+K`).
|
||||
- **Safe by design** — the catalog is a read-only part of the app, reviewed by the maintainer;
|
||||
nothing outside it ever runs as administrator. Admin commands run in a separate elevated helper
|
||||
(one UAC prompt per session, which you can end at any time).
|
||||
- **See before you run** — the exact command line is previewed with paths filled in. `Caution`
|
||||
commands ask first; `Dangerous` ones require typing the command's name or ID, and that check
|
||||
can't be turned off. A System Restore Point can be created first.
|
||||
- **Live console** — output streams in real time and stays readable on non-English Windows
|
||||
(UTF-16, UTF-8 and OEM code pages are decoded); cancel, copy, or save it to a file.
|
||||
Restart-required is detected from the exit code (`3010`).
|
||||
- **History, undo and recipes** — run past commands again, undo reversible tweaks (with a registry
|
||||
before/after diff), and chain commands into recipes that confirm every risky step.
|
||||
- **My commands** — save your own commands. They are kept apart from the catalog and always run
|
||||
without admin rights.
|
||||
- **Five languages** — English, Tiếng Việt, 日本語, 简体中文 and Español, switchable without a
|
||||
restart.
|
||||
- **Diagnostics** — Log Viewer, Debug panel, local logs with retention, and a crash dialog with a
|
||||
"Report a bug" flow that never sends anything by itself.
|
||||
|
||||
New here? Read the **[user guide](USAGE.md)**.
|
||||
|
||||
---
|
||||
|
||||
## Install
|
||||
|
||||
1. Download the latest **`CommandForge-win-Setup.exe`** from the
|
||||
[Releases page](https://github.com/poli0981/CommandForge/releases).
|
||||
2. Run it. The app installs per-user and updates itself from future releases.
|
||||
1. Download **`CommandForge-win-Setup.exe`** from the
|
||||
[latest release](https://github.com/poli0981/CommandForge/releases/latest).
|
||||
2. Run it. The app installs per-user (no admin rights needed) and updates itself from future
|
||||
releases.
|
||||
|
||||
### "Unknown publisher" / SmartScreen
|
||||
Already on 1.x? The app offers 2.0 as a normal update; your settings, favorites, history, recipes
|
||||
and commands carry over.
|
||||
|
||||
CommandForge is **not code-signed yet** (see [SECURITY.md](.github/SECURITY.md)), so Windows
|
||||
SmartScreen may warn about an unknown publisher and some antivirus engines may show a false
|
||||
positive (common for system-administration tools). To proceed: **More info → Run anyway**.
|
||||
### "Unknown publisher" and verifying your download
|
||||
|
||||
To verify your download, compare its SHA-256 against the `checksums.txt` attached to the release,
|
||||
and review the VirusTotal link in the release notes:
|
||||
CommandForge is **not Authenticode-signed yet** (see [SECURITY.md](.github/SECURITY.md)), so
|
||||
SmartScreen may warn about an unknown publisher, and some antivirus engines may flag it (common
|
||||
for system-administration tools). To proceed: **More info → Run anyway**.
|
||||
|
||||
```powershell
|
||||
Get-FileHash .\CommandForge-win-Setup.exe -Algorithm SHA256
|
||||
```
|
||||
Every release is built by GitHub Actions from a tagged commit. You can check your download first:
|
||||
|
||||
- **Build provenance** — with the [GitHub CLI](https://cli.github.com/), confirm the file was built
|
||||
by this repository's release workflow:
|
||||
|
||||
```powershell
|
||||
gh attestation verify .\CommandForge-win-Setup.exe --repo poli0981/CommandForge
|
||||
```
|
||||
|
||||
- **SHA-256** — compare with `checksums.txt` on the release page (case doesn't matter):
|
||||
|
||||
```powershell
|
||||
(Get-FileHash .\CommandForge-win-Setup.exe -Algorithm SHA256).Hash
|
||||
```
|
||||
|
||||
- The release notes link a **VirusTotal** scan, and each release ships an SPDX **SBOM**
|
||||
(`sbom.spdx.json`).
|
||||
|
||||
---
|
||||
|
||||
## Build from source
|
||||
|
||||
Requires the **.NET 10 SDK** on Windows 10 22H2 / 11.
|
||||
Requires Windows 10 22H2 / 11 and the **.NET 10 SDK** (the exact band is pinned in `global.json`).
|
||||
|
||||
```bash
|
||||
dotnet restore
|
||||
@@ -69,8 +98,7 @@ dotnet run --project src/CommandForge.Wpf
|
||||
dotnet test
|
||||
```
|
||||
|
||||
See [BUILD.md](BUILD.md) for publish/packaging and [UPDATES.md](UPDATES.md) for how the
|
||||
Velopack update mechanism works.
|
||||
See [BUILD.md](BUILD.md) for packaging and CI, and [UPDATES.md](UPDATES.md) for how updates work.
|
||||
|
||||
---
|
||||
|
||||
@@ -78,16 +106,39 @@ Velopack update mechanism works.
|
||||
|
||||
| Topic | File |
|
||||
|---|---|
|
||||
| User guide | [USAGE.md](USAGE.md) |
|
||||
| Release history | [CHANGELOG.md](CHANGELOG.md) |
|
||||
| Build, test, publish, release | [BUILD.md](BUILD.md) · [RELEASING.md](RELEASING.md) |
|
||||
| Update mechanism (Velopack) | [UPDATES.md](UPDATES.md) |
|
||||
| Contributing & contribution rules | [CONTRIBUTING.md](.github/CONTRIBUTING.md) |
|
||||
| Contributing | [CONTRIBUTING.md](.github/CONTRIBUTING.md) |
|
||||
| Security policy & disclosure | [SECURITY.md](.github/SECURITY.md) |
|
||||
| Privacy policy | [PRIVACY.md](PRIVACY.md) |
|
||||
| Disclaimer | [DISCLAIMER.md](DISCLAIMER.md) |
|
||||
| Terms of use (EULA) | [EULA.md](EULA.md) |
|
||||
| Third-party notices | [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md) |
|
||||
| Code of Conduct | [CODE_OF_CONDUCT.md](.github/CODE_OF_CONDUCT.md) |
|
||||
| Maintainers | [MAINTAINERS.md](MAINTAINERS.md) |
|
||||
|
||||
---
|
||||
|
||||
## Contact
|
||||
|
||||
Bugs and feature requests go to [GitHub Issues](https://github.com/poli0981/CommandForge/issues),
|
||||
and questions to [Discussions](https://github.com/poli0981/CommandForge/discussions). For
|
||||
everything else:
|
||||
|
||||
| Topic | Address |
|
||||
|---|---|
|
||||
| Security vulnerabilities (private) | security@poli0981.dev, or [private vulnerability reporting](https://github.com/poli0981/CommandForge/security/advisories/new) |
|
||||
| Privacy | privacy@poli0981.dev |
|
||||
| Terms, licensing and other legal questions | legal@poli0981.dev |
|
||||
| Copyright questions and permissions | copyright@poli0981.dev |
|
||||
| DMCA notices | dmca@poli0981.dev |
|
||||
| Other takedown requests (trademark, impersonation, unlawful content) | takedown@poli0981.dev |
|
||||
| Code, contributions and Code of Conduct reports | code@poli0981.dev |
|
||||
| Collaboration | collab@poli0981.dev |
|
||||
| Press | press@poli0981.dev |
|
||||
| Sponsorship | sponsor@poli0981.dev |
|
||||
|
||||
---
|
||||
|
||||
|
||||
+40
-23
@@ -5,35 +5,51 @@ SemVer tag.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Update `docs/Changelog.md` (internal) and make sure `main` is green.
|
||||
2. Choose a SemVer version `X.Y.Z`.
|
||||
3. Tag and push:
|
||||
1. Make sure `main` is green and contains everything for the release.
|
||||
2. Choose a SemVer version `X.Y.Z`. In a pull request, move the `[Unreleased]` notes in
|
||||
[CHANGELOG.md](CHANGELOG.md) under `## [X.Y.Z] — <date>`, add the compare link at the bottom,
|
||||
and set `<Version>` in `Directory.Build.props` (the dev-build default; the release build stamps
|
||||
the tag's version anyway). Merge it.
|
||||
3. Tag the merge commit on `main` with a **signed, annotated** tag and push it:
|
||||
|
||||
```bash
|
||||
git tag v0.3.0
|
||||
git push origin v0.3.0
|
||||
git switch main && git pull
|
||||
git tag -s vX.Y.Z -m "CommandForge X.Y.Z"
|
||||
git push origin vX.Y.Z
|
||||
```
|
||||
|
||||
The `release tags` ruleset protects `v*` tags: once pushed, a release tag can't be moved or
|
||||
deleted (only a repository admin can bypass this).
|
||||
4. The **Release** workflow runs on `windows-latest` and:
|
||||
- resolves the version from the tag (`vX.Y.Z` → `X.Y.Z`),
|
||||
- installs `vpk`,
|
||||
- **downloads the previous release** (`vpk download github`) so a delta can be computed
|
||||
(skipped/ignored on the very first release),
|
||||
- publishes self-contained and packages with Velopack (`scripts/pack.ps1`, which stamps the
|
||||
assembly version),
|
||||
- **publishes the GitHub Release** with all `Releases/` assets (`vpk upload github --publish`),
|
||||
- generates **`checksums.txt`** (SHA-256) and attaches it,
|
||||
- if `VT_API_KEY` is set, submits `Setup.exe` + `*-full.nupkg` to **VirusTotal** and appends the
|
||||
scan links to the release notes.
|
||||
5. Edit the GitHub Release notes if needed (changelog highlights). The SHA-256 + VirusTotal info is
|
||||
- resolves the version from the tag (`vX.Y.Z` → `X.Y.Z`);
|
||||
- restores the pinned `vpk` tool and **downloads the previous release** so a delta package can
|
||||
be computed;
|
||||
- publishes and packages with Velopack (`scripts/pack.ps1`);
|
||||
- creates **build-provenance attestations** for `Setup.exe` and the `.nupkg` files;
|
||||
- uploads everything as a **draft** GitHub Release, attaches the **SPDX SBOM**
|
||||
(`sbom.spdx.json`) and **`checksums.txt`** (SHA-256), then **publishes** it as the latest
|
||||
release — installed copies only see the update once every asset is in place;
|
||||
- if `VT_API_KEY` is set, submits `Setup.exe` and the full package to **VirusTotal** and appends
|
||||
the scan links to the release notes;
|
||||
- calls the shared announcer (`poli0981/.github`) to post the release to Discord.
|
||||
5. Check the release page: the assets are all there, and the attestation verifies:
|
||||
|
||||
```bash
|
||||
gh release download vX.Y.Z --pattern "*-Setup.exe"
|
||||
gh attestation verify CommandForge-win-Setup.exe --repo poli0981/CommandForge
|
||||
```
|
||||
|
||||
Edit the release notes if needed (changelog highlights). The SHA-256 and VirusTotal details are
|
||||
already attached.
|
||||
|
||||
You can also run the workflow manually (**Actions → Release → Run workflow**) with a `version`
|
||||
input; it tags `vX.Y.Z` via the upload step.
|
||||
input; the upload step then creates the `vX.Y.Z` tag.
|
||||
|
||||
## Required repository secrets
|
||||
## Repository secrets
|
||||
|
||||
| Secret | Used for | Required |
|
||||
|---|---|---|
|
||||
| `GITHUB_TOKEN` | Create the release & upload assets | automatic |
|
||||
| `GITHUB_TOKEN` | Create the release, upload assets, read the SBOM | automatic |
|
||||
| `VT_API_KEY` | VirusTotal scan + links | optional (step skipped if unset) |
|
||||
| `DISCORD_RELEASES_WEBHOOK` (or `DISCORD_REPO_WEBHOOK`) | Release announcement to Discord | optional |
|
||||
| `DISCORD_PING_ROLE_ID` | Role ping on stable releases | optional |
|
||||
@@ -44,7 +60,8 @@ input; it tags `vX.Y.Z` via the upload step.
|
||||
|
||||
## Code signing
|
||||
|
||||
Not done yet. Releases ship unsigned; users may see a SmartScreen "unknown publisher" warning.
|
||||
Mitigations: SHA-256 + VirusTotal (above), no obfuscation, public source. When Azure Trusted
|
||||
Signing (or SignPath Foundation) is configured, add a signing step after `dotnet publish` and
|
||||
before `vpk pack`, and update [SECURITY.md](.github/SECURITY.md).
|
||||
Not done yet: releases ship without an Authenticode signature, so users may see a SmartScreen
|
||||
"unknown publisher" warning. Mitigations: build-provenance attestations, SHA-256 checksums, an
|
||||
SBOM, VirusTotal, no obfuscation, and public source. When Azure Trusted Signing (or SignPath
|
||||
Foundation) is configured, add a signing step between `dotnet publish` and `vpk pack` in
|
||||
`scripts/pack.ps1`, and update [SECURITY.md](.github/SECURITY.md).
|
||||
+25
-17
@@ -1,29 +1,37 @@
|
||||
# Third-Party Notices
|
||||
|
||||
CommandForge (licensed under GPLv3) bundles or depends on the third-party components below.
|
||||
Each remains under its own license; all are compatible with GPLv3. Versions reflect the current
|
||||
build — see the `.csproj` files for the authoritative versions.
|
||||
Each remains under its own license; every component shipped with the app is compatible with
|
||||
GPLv3. Versions reflect the current build — see the `.csproj` files for the authoritative
|
||||
versions.
|
||||
|
||||
## NuGet packages (runtime)
|
||||
## NuGet packages shipped with the app
|
||||
|
||||
| Component | Version | License | Project |
|
||||
|---|---|---|---|
|
||||
| MaterialDesignThemes (+ MaterialDesignColors) | 5.3.2 | MIT | https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit |
|
||||
| WPF-UI (+ WPF-UI.Abstractions) | 4.3.0 | MIT | https://github.com/lepoco/wpfui |
|
||||
| CommunityToolkit.Mvvm | 8.4.2 | MIT | https://github.com/CommunityToolkit/dotnet |
|
||||
| Microsoft.Extensions.Hosting | 10.0.9 | MIT | https://github.com/dotnet/runtime |
|
||||
| Microsoft.Extensions.DependencyInjection.Abstractions | 10.0.9 | MIT | https://github.com/dotnet/runtime |
|
||||
| Serilog | 4.3.1 | Apache-2.0 | https://github.com/serilog/serilog |
|
||||
| Serilog.Extensions.Hosting | 10.0.0 | Apache-2.0 | https://github.com/serilog/serilog-extensions-hosting |
|
||||
| Microsoft.Extensions.DependencyInjection (+ .Abstractions) | 10.0.13 | MIT | https://github.com/dotnet/runtime |
|
||||
| Serilog | 4.4.0 | Apache-2.0 | https://github.com/serilog/serilog |
|
||||
| Serilog.Sinks.File | 7.0.0 | Apache-2.0 | https://github.com/serilog/serilog-sinks-file |
|
||||
| Serilog.Sinks.Async | 2.1.0 | Apache-2.0 | https://github.com/serilog/serilog-sinks-async |
|
||||
| Velopack | 1.2.0 | MIT | https://github.com/velopack/velopack |
|
||||
| System.Text.Json | (bundled with .NET 10) | MIT | https://github.com/dotnet/runtime |
|
||||
| Velopack (library, installer and update helpers) | 1.2.161 | MIT | https://github.com/velopack/velopack |
|
||||
| System.Text.Json and the rest of the .NET libraries | (bundled with .NET 10) | MIT | https://github.com/dotnet/runtime |
|
||||
|
||||
## Build-time only (not redistributed)
|
||||
WPF-UI incorporates code from VirtualizingWrapPanel, dotnet/wpf and microsoft-ui-xaml (all MIT)
|
||||
and the Fluent System Icons (below); see the `ThirdPartyNotices.txt` in the WPF-UI package.
|
||||
|
||||
## Build and test tools (not redistributed)
|
||||
|
||||
| Component | Version | License | Project |
|
||||
|---|---|---|---|
|
||||
| Microsoft.Windows.CsWin32 | 0.3.296 | MIT | https://github.com/microsoft/CsWin32 |
|
||||
| Microsoft.Windows.CsWin32 | 0.3.366 | MIT | https://github.com/microsoft/CsWin32 |
|
||||
| SonarAnalyzer.CSharp | 10.35.0.4138 | SONAR Source-Available License v1.0 | https://github.com/SonarSource/sonar-dotnet |
|
||||
| vpk (Velopack CLI) | 1.2.161 | MIT | https://github.com/velopack/velopack |
|
||||
| xunit.v3 (`xunit.v3.mtp-off`) | 4.0.2 | Apache-2.0 | https://github.com/xunit/xunit |
|
||||
| xunit.runner.visualstudio | 4.0.1 | Apache-2.0 | https://github.com/xunit/visualstudio.xunit |
|
||||
| Microsoft.NET.Test.Sdk | 18.11.0 | MIT | https://github.com/microsoft/vstest |
|
||||
| coverlet.collector | 10.1.0 | MIT | https://github.com/coverlet-coverage/coverlet |
|
||||
|
||||
## Runtime & platform
|
||||
|
||||
@@ -31,11 +39,11 @@ build — see the `.csproj` files for the authoritative versions.
|
||||
|
||||
## Fonts & icons
|
||||
|
||||
- **Material Design Icons** (via MaterialDesignThemes `PackIcon`) — Apache-2.0 / SIL OFL 1.1 —
|
||||
https://github.com/Templarian/MaterialDesign
|
||||
- **Cascadia Code / Cascadia Mono** (console/monospace, referenced by name with fallbacks; not
|
||||
bundled) — SIL OFL 1.1 — https://github.com/microsoft/cascadia-code
|
||||
- **Segoe UI / Segoe UI Variable** — Windows system font (not bundled).
|
||||
- **Fluent System Icons** (bundled inside WPF-UI; used for every icon in the app) — MIT,
|
||||
© Microsoft Corporation — https://github.com/microsoft/fluentui-system-icons
|
||||
- **Cascadia Mono** (console and code text, referenced by name with Consolas / Courier New
|
||||
fallbacks; not bundled) — SIL OFL 1.1 — https://github.com/microsoft/cascadia-code
|
||||
- **Segoe UI Variable / Segoe UI** — Windows system fonts (not bundled).
|
||||
|
||||
## AI disclosure
|
||||
|
||||
|
||||
+37
-20
@@ -6,21 +6,37 @@ CommandForge installs and updates itself with [Velopack](https://velopack.io/).
|
||||
## For users
|
||||
|
||||
1. Download `CommandForge-win-Setup.exe` from the
|
||||
[latest release](https://github.com/poli0981/CommandForge/releases) and run it. It installs
|
||||
per-user under `%LocalAppData%\CommandForge`.
|
||||
2. After that, the app checks GitHub Releases for newer versions (on startup if enabled, or via
|
||||
**Help → Check for updates** / `F5`) and updates itself. When a newer version exists it downloads
|
||||
the update (a small **delta** when possible) and applies it on restart.
|
||||
[latest release](https://github.com/poli0981/CommandForge/releases/latest) and run it. It
|
||||
installs per-user under `%LocalAppData%\CommandForge`.
|
||||
2. After that, the app checks GitHub Releases for newer versions — on startup if **Settings →
|
||||
Updates → Check for updates on startup** is on (the default), or when you choose **More (⋯) →
|
||||
Check for updates** or press `F5`.
|
||||
3. When a newer version exists, choose **Download & restart**. The app downloads the update (a
|
||||
small **delta** when possible), then restarts into the new version.
|
||||
|
||||
The only network connection involved is to GitHub (see [PRIVACY.md](PRIVACY.md)). Update errors are
|
||||
mapped to clear messages: offline, not found (404), rate limited (403/429), and server error (5xx).
|
||||
Good to know:
|
||||
|
||||
- Closing the update dialog — including with its **X** button — cancels the download.
|
||||
- The app never restarts in the middle of a command: if one is running, finish or cancel it first.
|
||||
If you start a command while the update downloads, the restart waits; choose **Download &
|
||||
restart** again when the command is done.
|
||||
- Before applying an update, the app ends the admin session, because the elevated helper runs
|
||||
from the folder that Velopack replaces.
|
||||
- Errors are shown in plain words: offline or timed out, no release feed found (404), rate limited
|
||||
(403/429), and GitHub server error (5xx).
|
||||
|
||||
The only network connection involved is to GitHub (see [PRIVACY.md](PRIVACY.md)).
|
||||
|
||||
## How it works under the hood
|
||||
|
||||
- The app calls `VelopackApp.Build().Run()` at startup to handle install/update/uninstall hooks.
|
||||
- It checks for updates via `UpdateManager(new GithubSource("https://github.com/poli0981/CommandForge", null, prerelease: false))`.
|
||||
- Auto-update only works for an **installed** build (not a dev/portable run); the app detects this
|
||||
and hides update prompts otherwise.
|
||||
- `Program.Main` calls `VelopackApp.Build().Run()` before WPF starts, to handle the
|
||||
install/update/uninstall hooks.
|
||||
- The app checks for updates via
|
||||
`UpdateManager(new GithubSource("https://github.com/poli0981/CommandForge", null, prerelease: false))`.
|
||||
- Download and apply are separate steps, so the app can end the admin session and check for a
|
||||
running command just before it restarts.
|
||||
- Auto-update only works for an **installed** build (not a dev or portable run); the app detects
|
||||
this and says so instead of offering an update.
|
||||
|
||||
## Release artifacts and the delta mechanism
|
||||
|
||||
@@ -33,15 +49,16 @@ Each release (see [RELEASING.md](RELEASING.md)) uploads the contents of `Release
|
||||
| `CommandForge-<version>-delta.nupkg` | Delta from the previous version (small download) |
|
||||
| `releases.win.json` / `RELEASES` | Update manifest the client reads |
|
||||
| `checksums.txt` | SHA-256 of the assets (manual verification) |
|
||||
| `sbom.spdx.json` | SPDX software bill of materials |
|
||||
|
||||
**First release (e.g. `v0.3.0`):** there is no previous version, so only a **full** package +
|
||||
`Setup.exe` + manifest are produced and uploaded.
|
||||
The installer and packages also have build-provenance attestations (see the
|
||||
[README](README.md#unknown-publisher-and-verifying-your-download)).
|
||||
|
||||
**Subsequent releases (e.g. `v0.3.1`):** Velopack needs the **previous** `-full.nupkg` present
|
||||
while packing to compute the delta. The release workflow does this automatically by running
|
||||
`vpk download github` before `vpk pack`, so each release after the first produces **both** a
|
||||
`-full.nupkg` and a `-delta.nupkg`. Clients already on `0.3.0` download only the small
|
||||
`-delta.nupkg`; the full package remains the fallback.
|
||||
Velopack needs the **previous** `-full.nupkg` present while packing to compute a delta. The
|
||||
release workflow runs `vpk download github` before `vpk pack`, so every release after the first
|
||||
produces **both** a `-full.nupkg` and a `-delta.nupkg`. Clients on the previous version (for
|
||||
example 1.5.1 when 2.0.0 ships) download only the delta; the full package remains the fallback. The very first release had no previous version, so it shipped only a full package.
|
||||
|
||||
> If you ever build a release **locally**, run `vpk download github --repoUrl <repo>` first so the
|
||||
> prior full package is available for the delta — otherwise only a full package is produced.
|
||||
> If you ever build a release **locally**, run `dotnet vpk download github --repoUrl <repo>`
|
||||
> first so the prior full package is available for the delta — otherwise only a full package is
|
||||
> produced.
|
||||
@@ -0,0 +1,264 @@
|
||||
# CommandForge user guide
|
||||
|
||||
CommandForge runs Windows maintenance commands for you: pick a command, read what it will do, and
|
||||
run it. This guide covers version 2.0. For installing and verifying downloads, see the
|
||||
[README](README.md#install).
|
||||
|
||||
- [First start](#first-start)
|
||||
- [The window](#the-window)
|
||||
- [Finding a command](#finding-a-command)
|
||||
- [Running a command](#running-a-command)
|
||||
- [Home](#home)
|
||||
- [History and undo](#history-and-undo)
|
||||
- [Recipes](#recipes)
|
||||
- [My commands](#my-commands)
|
||||
- [Settings](#settings)
|
||||
- [Log viewer and Debug panel](#log-viewer-and-debug-panel)
|
||||
- [Keyboard shortcuts](#keyboard-shortcuts)
|
||||
- [Updates](#updates)
|
||||
- [Your data and uninstalling](#your-data-and-uninstalling)
|
||||
- [Troubleshooting](#troubleshooting)
|
||||
|
||||
## First start
|
||||
|
||||
The first time you open CommandForge, it asks you to accept its terms:
|
||||
|
||||
1. Pick your language in the list above the terms. English, Tiếng Việt, 日本語, 简体中文 and
|
||||
Español are available, and you can change it later in Settings.
|
||||
2. Read the summaries on the **EULA**, **GPLv3**, **Disclaimer** and **Privacy** tabs. **Read the
|
||||
full text on GitHub** opens the complete documents.
|
||||
3. Tick **I have read and agree to all of the terms**, then choose **Continue**.
|
||||
|
||||
You'll be asked again only if the terms change.
|
||||
|
||||
## The window
|
||||
|
||||
- **Title bar**
|
||||
- The search box, **Search all commands (Ctrl+K)**, opens the Command Palette.
|
||||
- **Admin session active** appears while administrator commands can run without a new UAC
|
||||
prompt. Open it to **End admin session**.
|
||||
- **More (⋯)** holds the Command Palette, **Check for updates**, **Create System Restore
|
||||
Point**, **Export logs (.zip)**, the config and log folders, **Portable info**, **Keyboard
|
||||
shortcuts**, **User guide**, **Report a bug**, **Terms & Privacy** and **About CommandForge**.
|
||||
- **Navigation pane** (left)
|
||||
- Home, Favorites, History, Recipes and My commands.
|
||||
- **Command catalog**, with its 12 categories and the number of commands in each.
|
||||
- Log viewer, Debug panel and Settings, at the bottom.
|
||||
- `Ctrl+B` shows or hides the pane.
|
||||
- The window can be resized (down to a minimum size) and maximized. It reopens where you left it.
|
||||
|
||||
## Finding a command
|
||||
|
||||
- **Browse**: open **Command catalog** or one of its categories. Commands that don't apply to your
|
||||
version of Windows are hidden.
|
||||
- **Search**: type in the search box above the list (`Ctrl+F`). Search ignores case and accents
|
||||
("don dep" finds "Dọn dẹp") and matches titles, descriptions and tags. For everyday phrases such
|
||||
as "clean disk", a **Did you mean:** suggestion offers the catalog's own word.
|
||||
- **Filter**: the chips above the list show only **Safe**, **Caution** or **Dangerous** commands,
|
||||
or **Admin only**. **Clear filters** resets them.
|
||||
- **Favorites**: select the star on a command to pin it. Pinned commands appear on the
|
||||
**Favorites** page and on Home.
|
||||
- **Command Palette** (`Ctrl+K`): search the whole catalog from anywhere. Use `↑`/`↓` to move and
|
||||
`Enter` to open the command.
|
||||
|
||||
## Running a command
|
||||
|
||||
Select a command to see its details:
|
||||
|
||||
- its description and danger level (**Safe**, **Caution** or **Dangerous**);
|
||||
- whether it **Requires admin** or **May require restart**;
|
||||
- the **Estimated time**;
|
||||
- **Command to run** — the exact command line, with paths filled in. **Copy** copies it.
|
||||
|
||||
Choose **Run** to start it. A command that can be undone also shows **Revert**.
|
||||
|
||||
### Danger levels and confirmations
|
||||
|
||||
| Level | Meaning | Before it runs |
|
||||
|---|---|---|
|
||||
| **Safe** | No risk of losing data: read-only queries, opening a tool or settings page, or a small preference change you can undo the same way. | Runs right away. |
|
||||
| **Caution** | Changes system state (services, registry, caches, boot-time checks). Recoverable, but undoing it may take effort. | Asks you to confirm, unless you turned that off in Settings. |
|
||||
| **Dangerous** | May lose data, remove a rollback option or leave Windows unstable. | You must type the command's name (or the ID shown) before **Run** appears. This can't be turned off. |
|
||||
|
||||
In every confirmation, **Cancel** is the default and `Esc` closes the dialog.
|
||||
|
||||
### System Restore Points
|
||||
|
||||
For risky administrator commands, the confirmation offers **Create a System Restore Point first
|
||||
(recommended)**.
|
||||
|
||||
- Windows allows only one restore point every 24 hours. If a recent one exists, CommandForge says
|
||||
it skipped creating a new one.
|
||||
- If creating it fails, you're asked whether to run the command without one. **No** is the
|
||||
default.
|
||||
|
||||
You can also create one at any time from **More → Create System Restore Point**.
|
||||
|
||||
### Administrator commands
|
||||
|
||||
The first administrator command of a session shows a Windows UAC prompt for
|
||||
**CommandForge.Elevator**, and the console shows **Waiting for administrator permission…**.
|
||||
|
||||
- If you approve, the elevated helper stays open, so later admin commands run without another
|
||||
prompt. **Admin session active** appears in the title bar.
|
||||
- **End admin session** closes the helper when you're done; the next admin command asks again.
|
||||
- If you decline the prompt, the command doesn't run.
|
||||
|
||||
The rest of CommandForge never runs as administrator.
|
||||
|
||||
### The console
|
||||
|
||||
Output appears live below the details. Drag the splitter to give it more room.
|
||||
|
||||
- **Cancel** stops the running command.
|
||||
- **Copy all output** and **Save output to a file** keep a copy of what it printed.
|
||||
- When the command ends, the console shows the result (**Success**, **Failed** or **Cancelled**),
|
||||
the exit code and how long it took.
|
||||
- Very long output keeps the newest 10,000 lines; a note tells you how many earlier lines aren't
|
||||
shown.
|
||||
- Registry tweaks list the affected values before and after the run.
|
||||
- While a command runs, the taskbar button shows progress. If you moved to another page when it
|
||||
finishes, a notification tells you the result; if CommandForge is in the background, its
|
||||
taskbar button also flashes.
|
||||
|
||||
### Restarting Windows
|
||||
|
||||
When a command reports that a restart is needed (exit code 3010, or a command that always needs
|
||||
one), the console shows **Restart now**. It asks before restarting and isn't available while a
|
||||
command is running.
|
||||
|
||||
## Home
|
||||
|
||||
Home shows:
|
||||
|
||||
- **System status**: Windows build, memory, system drive space and uptime.
|
||||
- **Maintenance suggestions**: for example, Disk Cleanup when the system drive is low on space, or
|
||||
a restart after a week of uptime. **Open** shows the suggested command.
|
||||
- Your **Recent commands** and **Favorites**.
|
||||
|
||||
## History and undo
|
||||
|
||||
**History** lists every command you ran, with the time, result and duration.
|
||||
|
||||
- **Run again** repeats a command, with the same confirmations as the first time.
|
||||
- **Undo** appears for commands that have a vetted revert command (for example, turning a tweak
|
||||
back off).
|
||||
- **Clear history** deletes the list after asking.
|
||||
|
||||
Run again and Undo are unavailable while another command is running.
|
||||
|
||||
## Recipes
|
||||
|
||||
A recipe runs several catalog commands in order.
|
||||
|
||||
1. Open **Recipes** and choose **New**, then give the recipe a name.
|
||||
2. Use **Add a command…** and **Add** to append steps. Reorder them with **Move up** and **Move
|
||||
down**, or use **Remove step**.
|
||||
3. Choose **Save**, then **Run recipe**.
|
||||
|
||||
When a recipe runs:
|
||||
|
||||
- You first see an overview of its steps and confirm (**No** is the default).
|
||||
- Each Caution or Dangerous step then asks exactly as it would on its own.
|
||||
- If any step is a risky administrator command, a restore point is offered once, before the
|
||||
first step.
|
||||
- Administrator steps share one admin session, so you get a single UAC prompt.
|
||||
- The recipe stops if a step fails, and pauses if a step needs a restart. **Cancel** stops it.
|
||||
- Steps that aren't available on this PC stay in the recipe but are skipped.
|
||||
|
||||
## My commands
|
||||
|
||||
Under **My commands** you can save your own command lines, such as a `ping` you run often.
|
||||
|
||||
- They are **not part of the vetted catalog** and always run **without administrator rights**.
|
||||
You alone are responsible for what they do.
|
||||
- Choose **New**, fill in **Name**, **Executable** (for example `cmd` or `powershell`) and
|
||||
**Arguments**, then choose **Save**.
|
||||
- **Run** shows the exact command line and asks before running it.
|
||||
- With `cmd`, `/c` is added for you, so `cmd` + `ping example.com` runs `cmd /c ping example.com`.
|
||||
|
||||
## Settings
|
||||
|
||||
| Section | Options |
|
||||
|---|---|
|
||||
| **Appearance** | Theme (System, Light, Dark), Language, Font size (Small, Medium, Large). |
|
||||
| **Behavior & Safety** | Collapse the navigation pane by default; show Admin/Restart badges in lists; confirm before Caution commands; confirm before Dangerous commands (always on); tick "create a restore point" by default for risky admin commands; auto-scroll the console; warn before closing while a command is running. |
|
||||
| **Updates** | Check for updates on startup, the current version, the last check and **Check now**. |
|
||||
| **Backup & profiles** | **Export…** / **Import…** your appearance, behavior and favorites as a `.json` file, and save named profiles (for example "Gaming PC" or "Office") that you can **Apply** or **Delete**. |
|
||||
| **Logs** | Log level, log size, **Open log folder**, **Export logs (.zip)**, **Delete old logs**. |
|
||||
| **Advanced** | Run mode (Installed or Portable / dev), the config folder, the Debug panel, and **Reset to defaults** (keeps your accepted terms and logs). |
|
||||
| **About** | Version, license and GitHub links. |
|
||||
|
||||
Theme, language and font size change immediately; no restart needed.
|
||||
|
||||
## Log viewer and Debug panel
|
||||
|
||||
- **Log viewer** (`Ctrl+L`) shows this session's log.
|
||||
- Filter by level or text, and turn auto-scroll on or off.
|
||||
- **Open log folder** or **Export logs (.zip)** to share them. Review an export before you share
|
||||
it.
|
||||
- **Clear** empties the list shown.
|
||||
- **Debug panel** has three tabs:
|
||||
- **Log**: the detailed log.
|
||||
- **Catalog**: command and category counts, plus any validation errors.
|
||||
- **System info**: details you can **Copy** into a bug report.
|
||||
|
||||
## Keyboard shortcuts
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Ctrl+K` | Open the Command Palette |
|
||||
| `Ctrl+F` | Search the current list |
|
||||
| `Ctrl+H` | Home |
|
||||
| `Ctrl+B` | Show or hide the navigation pane |
|
||||
| `Ctrl+,` | Settings |
|
||||
| `Ctrl+L` | Log viewer |
|
||||
| `F5` | Check for updates |
|
||||
| `Ctrl+Q` | Exit |
|
||||
| `↑` / `↓` | Move the selection (lists and palette) |
|
||||
| `Enter` | Open the selected command |
|
||||
| `Esc` | Close a dialog or cancel |
|
||||
|
||||
Shortcuts are paused while a dialog is open, and `AltGr` combinations never trigger them, so
|
||||
typing characters like `@` on international keyboards is safe. The list is also under **More →
|
||||
Keyboard shortcuts**.
|
||||
|
||||
## Updates
|
||||
|
||||
The app checks GitHub for new versions on startup (unless you turned that off) and when you press
|
||||
`F5`.
|
||||
|
||||
- When an update is available, choose **Download & restart**.
|
||||
- Closing the dialog cancels the download.
|
||||
- The app never restarts while a command is running.
|
||||
|
||||
See [UPDATES.md](UPDATES.md) for details.
|
||||
|
||||
## Your data and uninstalling
|
||||
|
||||
Everything stays on your PC:
|
||||
|
||||
- Settings, history, recipes, your commands and profiles are in `%AppData%\CommandForge`.
|
||||
- Logs are in `%AppData%\CommandForge\logs`.
|
||||
- The program itself is in `%LocalAppData%\CommandForge`.
|
||||
|
||||
**More → Portable info** shows the exact folders. Nothing is sent anywhere except the update check
|
||||
— see [PRIVACY.md](PRIVACY.md).
|
||||
|
||||
To uninstall, go to **Settings → Apps → Installed apps** in Windows (**Apps & features** on
|
||||
Windows 10), find **CommandForge** and choose **Uninstall**. To also remove your settings and history, delete `%AppData%\CommandForge`
|
||||
afterwards.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- **SmartScreen or antivirus warnings**: releases aren't code-signed yet. See
|
||||
[verifying your download](README.md#unknown-publisher-and-verifying-your-download).
|
||||
- **Nothing happens when I open the app**: it runs as a single instance, so a second launch brings
|
||||
the existing window forward. If it still doesn't appear, check the logs in
|
||||
`%AppData%\CommandForge\logs`.
|
||||
- **An admin command didn't run**: it needs the UAC prompt to be approved. Run it again to get a
|
||||
new prompt. If admin commands keep failing, use **End admin session** and try again.
|
||||
- **Output looks garbled**: please report it with the command and your Windows display language.
|
||||
- **Something went wrong**: the error dialog has an **Error code** and **Copy details**.
|
||||
**Report a bug** (also in the More menu) opens a pre-filled GitHub issue. Nothing is sent until
|
||||
you submit it. Export the logs to attach them, but review them first.
|
||||
@@ -22,6 +22,12 @@ public static class ProductLinks
|
||||
/// <summary>Private vulnerability reporting.</summary>
|
||||
public const string SecurityAdvisory = Repository + "/security/advisories/new";
|
||||
|
||||
/// <summary>Private security reports by email (the alternative to <see cref="SecurityAdvisory"/>).</summary>
|
||||
public const string SecurityEmail = "security@poli0981.dev";
|
||||
|
||||
/// <summary>Questions about the code and contributions.</summary>
|
||||
public const string CodeEmail = "code@poli0981.dev";
|
||||
|
||||
/// <summary>Full text of the GNU GPL v3.</summary>
|
||||
public const string License = "https://www.gnu.org/licenses/gpl-3.0.html";
|
||||
}
|
||||
|
||||
@@ -2573,4 +2573,13 @@ Los detalles se escribieron en la carpeta de registros:
|
||||
<data name="TitleBar_Search" xml:space="preserve">
|
||||
<value>Buscar en todos los comandos (Ctrl+K)</value>
|
||||
</data>
|
||||
<data name="About_Contact" xml:space="preserve">
|
||||
<value>Contacto</value>
|
||||
</data>
|
||||
<data name="About_SecurityContact" xml:space="preserve">
|
||||
<value>Problemas de seguridad</value>
|
||||
</data>
|
||||
<data name="About_CodeContact" xml:space="preserve">
|
||||
<value>Código y contribuciones</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2573,4 +2573,13 @@
|
||||
<data name="TitleBar_Search" xml:space="preserve">
|
||||
<value>すべてのコマンドを検索 (Ctrl+K)</value>
|
||||
</data>
|
||||
<data name="About_Contact" xml:space="preserve">
|
||||
<value>連絡先</value>
|
||||
</data>
|
||||
<data name="About_SecurityContact" xml:space="preserve">
|
||||
<value>セキュリティの問題</value>
|
||||
</data>
|
||||
<data name="About_CodeContact" xml:space="preserve">
|
||||
<value>コードと貢献</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2573,4 +2573,13 @@ Details were written to the log folder:
|
||||
<data name="TitleBar_Search" xml:space="preserve">
|
||||
<value>Search all commands (Ctrl+K)</value>
|
||||
</data>
|
||||
<data name="About_Contact" xml:space="preserve">
|
||||
<value>Contact</value>
|
||||
</data>
|
||||
<data name="About_SecurityContact" xml:space="preserve">
|
||||
<value>Security issues</value>
|
||||
</data>
|
||||
<data name="About_CodeContact" xml:space="preserve">
|
||||
<value>Code and contributions</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2573,4 +2573,13 @@ Chi tiết đã được ghi vào thư mục log:
|
||||
<data name="TitleBar_Search" xml:space="preserve">
|
||||
<value>Tìm mọi lệnh (Ctrl+K)</value>
|
||||
</data>
|
||||
<data name="About_Contact" xml:space="preserve">
|
||||
<value>Liên hệ</value>
|
||||
</data>
|
||||
<data name="About_SecurityContact" xml:space="preserve">
|
||||
<value>Vấn đề bảo mật</value>
|
||||
</data>
|
||||
<data name="About_CodeContact" xml:space="preserve">
|
||||
<value>Mã nguồn và đóng góp</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2573,4 +2573,13 @@
|
||||
<data name="TitleBar_Search" xml:space="preserve">
|
||||
<value>搜索所有命令 (Ctrl+K)</value>
|
||||
</data>
|
||||
<data name="About_Contact" xml:space="preserve">
|
||||
<value>联系方式</value>
|
||||
</data>
|
||||
<data name="About_SecurityContact" xml:space="preserve">
|
||||
<value>安全问题</value>
|
||||
</data>
|
||||
<data name="About_CodeContact" xml:space="preserve">
|
||||
<value>代码与贡献</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2,8 +2,9 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||
xmlns:res="clr-namespace:CommandForge.Desktop.Resources">
|
||||
<!-- Shown in an in-window dialog: name, version, privacy note, links. -->
|
||||
xmlns:res="clr-namespace:CommandForge.Desktop.Resources"
|
||||
xmlns:app="clr-namespace:CommandForge.Application;assembly=CommandForge.Application">
|
||||
<!-- Shown in an in-window dialog: name, version, privacy note, links, contact addresses. -->
|
||||
<StackPanel MinWidth="380" MaxWidth="520">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ui:SymbolIcon Symbol="WindowConsole20" FontSize="32" Foreground="{DynamicResource AccentTextFillColorPrimaryBrush}"
|
||||
@@ -22,5 +23,25 @@
|
||||
<ui:HyperlinkButton Content="{res:Loc Menu_UserGuide}" Click="OnUserGuideClick" Margin="0,0,8,4" />
|
||||
<ui:HyperlinkButton Content="{res:Loc Menu_Terms}" Click="OnTermsClick" Margin="0,0,8,4" />
|
||||
</WrapPanel>
|
||||
|
||||
<TextBlock Text="{res:Loc About_Contact}" Style="{StaticResource BodyStrongTextStyle}" Margin="0,12,0,4" />
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{res:Loc About_SecurityContact}" Style="{StaticResource SecondaryTextStyle}"
|
||||
VerticalAlignment="Center" Margin="0,0,12,0" />
|
||||
<ui:HyperlinkButton Grid.Column="1" Content="{x:Static app:ProductLinks.SecurityEmail}" Click="OnSecurityEmailClick"
|
||||
HorizontalAlignment="Left" AutomationProperties.HelpText="{res:Loc About_SecurityContact}" />
|
||||
<TextBlock Grid.Row="1" Text="{res:Loc About_CodeContact}" Style="{StaticResource SecondaryTextStyle}"
|
||||
VerticalAlignment="Center" Margin="0,0,12,0" />
|
||||
<ui:HyperlinkButton Grid.Row="1" Grid.Column="1" Content="{x:Static app:ProductLinks.CodeEmail}" Click="OnCodeEmailClick"
|
||||
HorizontalAlignment="Left" AutomationProperties.HelpText="{res:Loc About_CodeContact}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -6,7 +6,7 @@ using CommandForge.Desktop.Services;
|
||||
|
||||
namespace CommandForge.Desktop.Views;
|
||||
|
||||
/// <summary>The About content: app name, version, privacy note and links.</summary>
|
||||
/// <summary>The About content: app name, version, privacy note, links and contact addresses.</summary>
|
||||
public partial class AboutView : UserControl
|
||||
{
|
||||
private readonly IShellService _shell;
|
||||
@@ -33,4 +33,8 @@ public partial class AboutView : UserControl
|
||||
private void OnUserGuideClick(object sender, RoutedEventArgs e) => _shell.TryOpen(ProductLinks.UserGuide);
|
||||
|
||||
private void OnTermsClick(object sender, RoutedEventArgs e) => _showTerms();
|
||||
|
||||
private void OnSecurityEmailClick(object sender, RoutedEventArgs e) => _shell.TryOpen("mailto:" + ProductLinks.SecurityEmail);
|
||||
|
||||
private void OnCodeEmailClick(object sender, RoutedEventArgs e) => _shell.TryOpen("mailto:" + ProductLinks.CodeEmail);
|
||||
}
|
||||
Reference in new issue
Block a user