Free, open-source Windows optimization tool for performance, privacy, and simplicity.
C# csharpdebloatdotnetgamingopen-sourceoptimizationoptimizeroptimizerduckperformanceprivacytweakertweakswindowswinui
im too lazy to write all this changes
itsfatduck1b957075e74a
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex c3b2b0d..d2eccf8 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -65,7 +65,7 @@ Add any other context or screenshots about the feature request here.Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests.-1. Fork the repo and create your branch from `main`.+1. Fork the repo and create your branch from `master`.2. If you've added code that should be tested, add tests.3. If you've changed APIs, update the documentation.4. Ensure the test suite passes.@@ -105,6 +105,7 @@ dotnet run --project optimizerDuck#### Branch NamingTo keep our branch structure organized, please follow this convention:+> **Note:** Current repo doesn't follow this convention fully, but this is the direction for organizing branches in the future.* `feature/<description>` for new features (e.g., `feature/add-new-tweak`)* `fix/<description>` for bug fixes (e.g., `fix/resolve-crash-on-start`)@@ -187,7 +188,7 @@ dotnet watch test#### README Updates* If you add or change a feature, please update the `README.md` to reflect the changes.-* Ensure any new tweaks are listed in the "What It Actually Does" section.+* Ensure any new tweaks are listed in the "Features" section.## Pull Request Process@@ -230,7 +231,7 @@ dotnet watch test3. **Review Process*** One or more maintainers will review your pull request.* Please be responsive to feedback and questions.- * Once your PR is approved, it will be merged into the `main` branch.+ * Once your PR is approved, it will be merged into the `master` branch.## Communitydiff --git a/Docs/acknowledgments.md b/Docs/acknowledgments.mdnew file mode 100644index 0000000..740fe09--- /dev/null+++ b/Docs/acknowledgments.md@@ -0,0 +1,29 @@+<div align="center">++<img src="../.github/assets/optimizerDuck.png" alt="optimizerDuck Banner" title="optimizerDuck" height="300"/>++# Acknowledgments++Special thanks to the **libraries**, **projects**, and **community members** who made this possible:++</div>++## 📚 Libraries+- [Spectre.Console](https://spectreconsole.net/) — modern console UI library for .NET+- [Serilog](https://serilog.net/) — flexible logging framework+- [vertical-spectreconsolelogger](https://github.com/verticalsoftware/vertical-spectreconsolelogger/) — customizable Spectre Console provider+- [Microsoft Docs](https://docs.microsoft.com/en-us/) — official documentation for Windows and .NET++## 🛠️ Projects+- [WinUtil](https://github.com/ChrisTitusTech/winutil) — Windows optimization scripts and tools+- [OneClick](https://github.com/QuakedK/Oneclick) — debloat Windows by disabling telemetry and unnecessary services+- Other open-source projects that inspired tweaks and ideas++## 👥 Community & Users+- Everyone who starred ⭐ the project+- GitHub contributors (issues, discussions, PRs)+- Discord members for feedback and support++---++All resources are open-source or official, ensuring transparency and credibility.diff --git a/Docs/faq.md b/Docs/faq.mdnew file mode 100644index 0000000..7c21f8c--- /dev/null+++ b/Docs/faq.md@@ -0,0 +1,26 @@+<div align="center">++<img src="../.github/assets/optimizerDuck.png" alt="optimizerDuck Banner" title="optimizerDuck" height="300"/>++# FAQ: Safety & Usage++View answers to common questions about optimizerDuck and its safety.++</div>++## Is optimizerDuck a virus?++Absolutely not. **optimizerDuck** is **open-source** and you can inspect every line of code yourself.+It does not contain malware, spyware, or hidden installers.+All tweaks are transparent and documented in this repository.++For peace of mind:+- Review the source code in [GitHub](../).+- Build the project yourself from source.+- Check the [Safety Guidelines](safety.md).++## Why does optimizerDuck restart the app every time I open it?++**optimizerDuck** requires a restart on each launch because:+- Administrator permissions are always needed to apply system-level tweaks.+- The app opens in a maximized window so all options are clearly visible.\ No newline at end of filediff --git a/Docs/getting-started.md b/Docs/getting-started.mdnew file mode 100644index 0000000..7fc4178--- /dev/null+++ b/Docs/getting-started.md@@ -0,0 +1,34 @@+<div align="center">++<img src="../.github/assets/optimizerDuck.png" alt="optimizerDuck Banner" title="optimizerDuck" height="300"/>++# Getting Started++</div>++## Requirements+- Windows 10 or 11 (x64)+- Administrator privileges++## Download++1. [Download the latest release](https://github.com/itsfatduck/optimizerDuck/releases/latest).+2. Run the `.exe` file.++## Update++1. Auto update is enabled by default - you'll be notified when a new version is available.+2. You can also update manually by downloading the latest release from [GitHub](https://github.com/itsfatduck/optimizerDuck/releases/latest).++## Restart required++1. optimizerDuck will ask for a restart after applying tweaks.+2. Restart your PC for tweaks to take effect.++## Uninstall+optimizerDuck is portable.+To uninstall, simply delete the `.exe` file and related config/logs in `%APPDATA%/optimizerDuck/`.++## Safety++See [Safety Guidelines](safety.md) before applying changes.diff --git a/Docs/index.md b/Docs/index.mdnew file mode 100644index 0000000..b2b387d--- /dev/null+++ b/Docs/index.md@@ -0,0 +1,18 @@+<div align="center">++<img src="../.github/assets/optimizerDuck.png" alt="optimizerDuck Banner" title="optimizerDuck" height="300"/>++# Documentation++</div>++Welcome to the **optimizerDuck** documentation!++Here you will find information about how to use **optimizerDuck**, as well as information about the project and its features.++## Table of Contents++- [Getting Started](getting-started.md)+- [Safety](safety.md)+- [FAQ: Safety & Usage](faq.md)+- [Acknowledgments](acknowledgments.md)diff --git a/Docs/safety.md b/Docs/safety.mdnew file mode 100644index 0000000..f3d59b6--- /dev/null+++ b/Docs/safety.md@@ -0,0 +1,24 @@+<div align="center">++<img src="../.github/assets/optimizerDuck.png" alt="optimizerDuck Banner" title="optimizerDuck" height="300"/>++# Safety Guidelines++Follow these safety guidelines to ensure a secure and smooth experience.++</div>++## Safety Guidelines+These are steps users should follow to ensure safe usage:+- Always create a restore point when prompted.+- Grant administrator permissions when requested.+- Restart your PC after applying tweaks.++## Safety Features+optimizerDuck is built with safety in mind. Key features include:+- **Ask for restore points** before making changes.+- **Modular design** — apply only the tweaks you want.+- **Extensive testing** on various hardware configurations.+- **Open source** — you can inspect every line of code.+- **Manual testing** — all tweaks have been manually tested.+- **Logging** — detailed log at `%APPDATA%\optimizerDuck\optimizerDuck.log`.\ No newline at end of filediff --git a/GEMINI.md b/GEMINI.mdnew file mode 100644index 0000000..3c6d69d--- /dev/null+++ b/GEMINI.md@@ -0,0 +1,45 @@+# optimizerDuck++## Project Overview++optimizerDuck is a free and open-source Windows optimization tool built with .NET 10.0. It provides a simple and intuitive command-line interface for applying various tweaks to improve system performance, privacy, and user experience. The tool is designed to be modular, allowing users to select which tweaks to apply. It also prioritizes safety by prompting users to create a system restore point before making any changes.++The application uses the following key technologies:++* **.NET 10.0**: The core framework for the application.+* **Spectre.Console**: A library for creating beautiful and interactive command-line interfaces.+* **Serilog**: A flexible logging framework for .NET applications.+* **Microsoft.PowerShell.SDK**: To interact with PowerShell for some of the tweaks.++The project is structured into two main parts:++* **optimizerDuck**: The main application, containing the core logic, UI, and optimization tweaks.+* **optimizerDuck.Test**: A separate project for unit tests.++## Building and Running++To build and run the project, you will need the .NET 10.0 SDK installed.++1. **Clone the repository:**+ ```bash+ git clone https://github.com/itsfatduck/optimizerDuck.git+ ```+2. **Navigate to the project directory:**+ ```bash+ cd optimizerDuck+ ```+3. **Build the project:**+ ```bash+ dotnet build+ ```+4. **Run the project:**+ ```bash+ dotnet run --project optimizerDuck+ ```++## Development Conventions++* **Coding Style**: The project follows the standard C# coding conventions.+* **Unit Tests**: The project has a separate test project (`optimizerDuck.Test`) for unit tests.+* **Logging**: The project uses Serilog for logging. Logs are written to a file in the `%APPDATA%/optimizerDuck/` directory.+* **Contributions**: Contributions are welcome. Please read the `CONTRIBUTING.md` file for more information.diff --git a/README.md b/README.mdindex 9f90e34..469af45 100644--- a/README.md+++ b/README.md@@ -21,16 +21,15 @@# Table of Contents1. [Quick Start](#quick-start)-2. [Features](#features)-3. [Safety First](#safety-first)+2. [Documentation](#documentation)+3. [Features](#features)4. [Mindset Matters](#mindset-matters)5. [Why I Built optimizerDuck](#why-i-built-optimizerduck)6. [Community & Support](#community--support)7. [Contributing](#contributing)-8. [Acknowledgments](#acknowledgments)-9. [Disclaimer](#disclaimer)-10. [License](#license)-11. [Star History](#star-history)+8. [Disclaimer](#disclaimer)+9. [License](#license)+10. [Star History](#star-history)---@@ -42,6 +41,11 @@2. Run the `.exe` file3. Restart your PC for some tweaks to take effect+### Documentation++For more detailed guides, check out the [docs](./docs/index.md).++---## Features@@ -93,19 +97,6 @@ Here's a breakdown of the tweaks available in optimizerDuck, organized by catego----## Safety First--<img src="./.github/assets/app_restorepoint.png" alt="optimizerDuck Restore Point" title="optimizerDuck Restore Point" width="1000" />--- **Ask for restore points** before making changes-- **Modular design** - apply only what you want-- **Extensive testing** on various hardware configurations-- **Open source** - you can check every line of code-- **Manual testing** - All tweaks have been manually tested across multiple hardware configurations-- **Logging** - Detailed logging file can be found in `%APPDATA%/optimizerDuck/` directory------## Mindset Matters* A powerful PC means little if it's not used efficiently.@@ -143,17 +134,6 @@ We welcome contributions from the community!----## Acknowledgments--- **[Spectre.Console](https://spectreconsole.net/)** - A modern, cross-platform, and highly customizable terminal interface library for .NET.-- **[Serilog](https://serilog.net/)** - A flexible logging framework for .NET applications.-- **[vertical-spectreconsolelogger](https://github.com/verticalsoftware/vertical-spectreconsolelogger/)** - A seriously customizable [Spectre Console](https://spectreconsole.net/) provider for Microsoft.Extensions.Logging.-- **[WinUtil](https://github.com/ChrisTitusTech/winutil)** - A collection of Windows optimization scripts and tools by Chris Titus Tech.-- **[Microsoft Docs](https://docs.microsoft.com/en-us/)** - Official documentation for Windows and .NET.-- And many more open-source contributors who helped make this project possible.------## DisclaimeroptimizerDuck is provided "as is", without warranty of any kind.diff --git a/optimizerDuck/Properties/PublishProfiles/FolderProfile.pubxml b/optimizerDuck/Properties/PublishProfiles/FolderProfile.pubxmlindex 3b73cd6..97aa015 100644--- a/optimizerDuck/Properties/PublishProfiles/FolderProfile.pubxml+++ b/optimizerDuck/Properties/PublishProfiles/FolderProfile.pubxml@@ -12,6 +12,7 @@<DebugSymbols>false</DebugSymbols><DebugType>none</DebugType><SelfContained>true</SelfContained>+ <PublishAot>true</PublishAot><PublishSingleFile>true</PublishSingleFile><PublishReadyToRun>true</PublishReadyToRun><EnableReadyToRunCompilation>true</EnableReadyToRunCompilation>diff --git a/optimizerDuck/src/UI/Logger/Logger.cs b/optimizerDuck/src/UI/Logger/Logger.csindex ad471c2..2085972 100644--- a/optimizerDuck/src/UI/Logger/Logger.cs+++ b/optimizerDuck/src/UI/Logger/Logger.cs@@ -1,5 +1,4 @@-using System.Reflection;-using Microsoft.Extensions.Logging;+using Microsoft.Extensions.Logging;using optimizerDuck.Core;using Serilog;using Serilog.Core;@@ -24,7 +23,7 @@ public class PlainTextFormatter : ITextFormatter// [SourceContext]if (logEvent.Properties.TryGetValue("SourceContext", out var ctx) && ctx is ScalarValue sv)output.Write($" [{sv.Value,-25}]");-+// [INFO ]@@ -126,7 +125,7 @@ public class ShortSourceContextEnricher : ILogEventEnricherpublic static class Logger{- public static readonly string LogFilePath = Path.Combine(Defaults.RootPath, "debug.log");+ public static readonly string LogFilePath = Path.Combine(Defaults.RootPath, "optimizerDuck.log");private static readonly ILoggerFactory _loggerFactory;static Logger()@@ -134,12 +133,12 @@ public static class LoggerLog.Logger = new LoggerConfiguration().MinimumLevel.Debug().Enrich.With<ShortSourceContextEnricher>()- .WriteTo.File(new PlainTextFormatter(), LogFilePath, shared:true)+ .WriteTo.File(new PlainTextFormatter(), LogFilePath, shared: true).CreateLogger();-+// add a header to the log fileLog.Logger.Information("\n\n{Logo}\nVersion: {Version}\n\n", Defaults.RawLogo, Defaults.FileVersion);-+_loggerFactory = LoggerFactory.Create(builder =>{builder.AddSpectreConsole(config =>