You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/add-a-program.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ Fill it in with the program's details:
53
53
|`license`| No | Short license identifier (e.g. `MIT`, `GPL-2.0`) |
54
54
|`categories`| Yes | Array of category slugs. Must match existing files in `content/categories/`. |
55
55
|`package_names`| Yes | Map of distro slug → package name |
56
+
|`logo`| No | Path to a 64×64 PNG logo (see below) |
56
57
57
58
## Package names
58
59
@@ -78,6 +79,80 @@ Categories must already exist in `content/categories/`. Each file there is a JSO
78
79
}
79
80
```
80
81
82
+
## Adding a logo (optional)
83
+
84
+
A logo is displayed as a small 28×28 icon next to the program name in both the Programs catalog and the Setup Generator.
85
+
86
+
### File location
87
+
88
+
Place a **64×64 PNG** in the static folder, mirroring the program's content path:
89
+
90
+
```
91
+
static/programs/htop/logo.png
92
+
```
93
+
94
+
Then add the `logo` field to `program.json`:
95
+
96
+
```json
97
+
{
98
+
"name": "htop",
99
+
"slug": "htop",
100
+
"logo": "/programs/htop/logo.png",
101
+
...
102
+
}
103
+
```
104
+
105
+
### Finding a logo
106
+
107
+
The best source for clean, consistent logos is [simple-icons](https://simpleicons.org/) — a free library of SVG brand icons. Search for the program name there first.
108
+
109
+
If the program is not in simple-icons, check:
110
+
- The program's GitHub repository (look for a logo in `README.md`, `.github/`, or `docs/`)
111
+
- The program's official website favicon
112
+
113
+
### Converting an SVG to PNG
114
+
115
+
Use `rsvg-convert` to render the SVG at 64×64. The snippet below wraps the icon in a light rounded background with the brand color, which matches the style used by all existing logos:
0 commit comments