mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
This pull request adds support for generating app icons from a PNG file in addition to the existing `.app` bundle method. The changes update both the documentation and the `generate-icons.sh` script to allow users to specify either an app bundle or a PNG file, improving flexibility for icon generation. **Documentation and usage improvements:** * Updated `README.md` to document the new `-i` option for PNG input, clarified required arguments, and added usage examples for both `.app` bundles and PNG files. **Script enhancements for PNG support:** * Modified argument parsing in `generate-icons.sh` to accept a new `-i` option for PNG files, and added validation to ensure either `-a` or `-i` is provided (but not both). [[1]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44R295-R302) [[2]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44L312-R381) * Added logic to handle PNG input: verifies the PNG file, derives component and display names from the slug, and integrates PNG processing alongside the existing `.app` bundle workflow. [[1]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44L312-R381) [[2]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44L412) [[3]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44R508-R519) * Adjusted SVG and component name generation to work appropriately for both input methods, ensuring correct naming and file output. [[1]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44L465-R548) [[2]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44L481-L483) [[3]](diffhunk://#diff-3efaab61495d01f6ff77a1e75195bd8b009e71c9ea53e3278274cb5edf929c44L501-L507) |
||
|---|---|---|
| .. | ||
| icons | ||
| packages | ||
| vulnerabilities | ||