Hoa KỳColorCop/ColorCop
A lightweight Windows color picker with multi-format output
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của ngày
#1 Repository của ngày
#1 Repository của ngày
ColorCop
A Windows-based color picker utility built with Microsoft Foundation Classes (MFC).
About this repository
This GitHub repository contains the source code for Color Cop. It is intended for developers and contributors who want to build, debug, or improve the application.
If you just want to download and use Color Cop, visit the official website: colorcop.net, which provides the latest stable installer and user-focused information.
This repository is focused on development, issue tracking, and contribution workflows.
Quick start for developers
-
Install prerequisites
- Windows 10/11
- Visual Studio with the MSVC v145 compiler toolset
-
Clone the repository
git clone https://github.com/ColorCop/ColorCop.git cd ColorCop
Building in Visual Studio
- Open
ColorCop.slnin Visual Studio 2022. - Select the desired configuration from the toolbar:
- Debug | Win32
- Release | Win32
- Build the solution via Build → Build Solution.
A placeholder version.h is included in the repository so the project builds cleanly in the IDE.
When using the command‑line build.cmd script, this file is automatically regenerated with version information from Git tags.
Build Configurations
- Debug — Development build with debugging symbols and no optimizations
- Release — Optimized production build suitable for distribution
Command-line build and versioning
ColorCop includes a build.cmd script for reproducible Release builds.
-
Version source: The script reads the latest Git tag using
git describe --tags --abbrev=0. Tags are expected to follow semantic versioning, typicallyvMAJOR.MINOR.PATCH(for example,v5.5.2). -
Fallback behavior: If no tags are found (for example, in forks or shallow clones), the script falls back to
0.0.0. -
Generated files:
ColorCop\version.h— containsVER_FILEVERSION,VER_PRODUCTVERSION, and related string macros derived from the Git tag.ColorCop\installer\version.iss— containsAppVersionStrfor the installer, also derived from the Git tag.
-
Build invocation: The script locates a C++‑capable
MSBuild.exeviavswhereand runs aRebuildof theRelease | Win32configuration.
Release Workflow
ColorCop uses Git tags (e.g., v5.5.2) to drive the release pipeline.
Pushing a new tag triggers GitHub Actions to:
- Build the application
- Update version metadata
- Publish a new GitHub Release with compiled binaries
GitHub does not support a “post‑release” event. The following steps must be run after the GitHub Release has been created.
Post‑release actions
After a new release is published on GitHub, two manual follow‑up workflows must be run:
1. Publish to Chocolatey
- Go to Actions → Publish Chocolatey Package
- Click Run workflow
- Enter the release tag (e.g.,
v5.5.2) - Run the workflow to publish the updated Chocolatey package
2. Publish to WinGet
- Go to Actions → Publish to WinGet
- Click Run workflow
- Enter the same release tag (e.g.,
v5.5.2) - Run the workflow to submit the updated WinGet manifest
Listing existing tags
git tag --list
Development
Project Structure
ColorCop.cpp/h- Main application classColorCopDlg.cpp/h- Main dialog implementationSystemTray.cpp/h- System tray functionalityRes/- Application resources and icons
Code Linting
This project uses cpplint to enforce C++ style guidelines.
Install:
pip install cpplint
Run linting:
mise lint
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly on Windows 10/11
- Submit a pull request
License
ColorCop is licensed under the MIT License.
See LICENSE.txt for the full license text.
Troubleshooting
Build Errors:
- Ensure MFC components are installed for the active MSVC toolset
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
PlayStation 4 emulator for Windows, Linux, macOS and FreeBSD written in C++
WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
Windows Calculator: A simple yet powerful calculator that ships with Windows
UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
Widgets to interact with UniGetUI from Dev Home and Windows Widgets
Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.