Commit 9405bf4
feat: concurrent Windows collection, platform tests, and CLI improvements (#10)
* feat: sign distribution binary
* feat: add distribution .pkg with Apache 2.0 license and installer UI
- Add installer resources (welcome.html, readme.html, license.html)
- Convert Apache 2.0 LICENSE to HTML for macOS Installer.app display
- Add Distribution XML for productbuild with Welcome, Read Me, and
License Agreement screens
- Update Makefile build-dist-pkg to use pkgbuild + productbuild
- Users see install location, usage examples, uninstall instructions,
and must agree to Apache 2.0 license before installing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: add installer resources for macOS .pkg distribution
- Add Welcome, Read Me, License (Apache 2.0), and Distribution XML
- Fix .gitignore: scope 'machineid' rule to root only so installer/
macos/machineid/ directory is not ignored
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: make test
* feat: concurrent Windows collection, platform tests, and CLI improvements
- Rewrite Windows collectIdentifiers to run all hardware queries
concurrently using goroutines, reducing ID generation from ~8-12s
to ~2-3s by parallelizing slow wmic/PowerShell calls.
- Add comprehensive platform-specific test files: windows_test.go
(50+ tests covering parsing, fallback, concurrent collection,
diagnostics) and linux_test.go (25+ tests covering parsing,
validation, file reading, mock executor integration).
- Add platform-specific example files for Windows and Linux with
testable examples for diagnostics, integrity, and platform notes.
- Improve CLI help: grouped flags by category, documented default
behavior and exit codes, cleaner version output with aligned
key-value pairs, rename -version.long to -version-long, include
salt in JSON output.
- Fix all golangci-lint errors across darwin/linux/windows: add
proper error checking in tests, nolint annotations for example
functions, apply De Morgan's law fix.
- Update doc.go and README.md with concurrent Windows collection
details and revised CLI documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: handle redirect in Makefile command wrapper when MAKE_STOP_ON_ERRORS is true
Avoid double stdout redirection when the command already contains a
redirect (e.g. `> file`). Uses $(findstring) to detect existing
redirects and only adds `2>/dev/null` in that case.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chrore: update instructions
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e85406c commit 9405bf4
28 files changed
Lines changed: 2714 additions & 269 deletions
File tree
- .github
- workflows
- .vscode
- cmd/machineid
- docs
- installer/macos/machineid
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments