-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.schema.json
More file actions
108 lines (108 loc) · 3.92 KB
/
config.schema.json
File metadata and controls
108 lines (108 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/jsas4coding/appnix/refs/heads/main/config.schema.json",
"title": "AppNix Configuration",
"description": "Schema for AppNix config.yml — defines defaults and app entries for building Electron .rpm packages.",
"type": "object",
"required": ["defaults", "apps"],
"additionalProperties": false,
"properties": {
"defaults": {
"type": "object",
"description": "Global defaults applied to all app builds.",
"required": ["electron_version", "lang", "maintainer", "spellcheck"],
"additionalProperties": false,
"properties": {
"electron_version": {
"type": "string",
"description": "Electron version used to build all apps.",
"pattern": "^\\d+\\.\\d+\\.\\d+$",
"examples": ["41.0.2"]
},
"lang": {
"type": "string",
"description": "Default language/locale for the Electron shell.",
"pattern": "^[a-z]{2}-[A-Z]{2}$",
"examples": ["en-US", "pt-BR"]
},
"maintainer": {
"type": "string",
"description": "Package maintainer in 'Name <email>' format for .rpm metadata.",
"pattern": "^.+ <.+@.+>$",
"examples": ["Odara Development <hi@odara.dev>"]
},
"spellcheck": {
"type": "array",
"description": "List of locale codes enabled for spellcheck.",
"items": {
"type": "string",
"pattern": "^[a-z]{2}-[A-Z]{2}$"
},
"minItems": 1,
"uniqueItems": true,
"examples": [["en-US", "pt-BR"]]
}
}
},
"apps": {
"type": "array",
"description": "List of web apps to package as Electron .rpm applications.",
"minItems": 1,
"items": {
"type": "object",
"required": ["name", "url", "app_name", "category", "description"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Human-readable display name shown in the desktop entry.",
"minLength": 1,
"examples": ["Google Drive", "WhatsApp"]
},
"url": {
"type": "string",
"description": "URL loaded by the Electron wrapper.",
"format": "uri",
"pattern": "^https?://",
"examples": ["https://drive.google.com"]
},
"icon": {
"type": "string",
"description": "Icon filename (without extension) from the icons directory.",
"pattern": "^[a-z0-9][a-z0-9-]*$",
"examples": ["drive", "globo-play"]
},
"app_name": {
"type": "string",
"description": "Machine identifier used for package name, binary and paths. Must be lowercase alphanumeric with hyphens.",
"pattern": "^[a-z0-9][a-z0-9-]*$",
"examples": ["drive", "haven-webmail"]
},
"category": {
"type": "string",
"description": "FreeDesktop.org menu categories separated by semicolons.",
"pattern": "^[A-Za-z0-9]+(;[A-Za-z0-9]+)*$",
"examples": ["Office;Network;Email", "Development;Database;Network"]
},
"description": {
"type": "string",
"description": "Short description for the desktop entry and package metadata.",
"minLength": 10,
"maxLength": 128,
"examples": ["Cloud file storage, sync and real-time collaboration"]
},
"keywords": {
"type": "array",
"description": "Search keywords for desktop environment discovery.",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true,
"examples": [["google", "cloud", "storage"]]
}
}
}
}
}
}