-
Notifications
You must be signed in to change notification settings - Fork 74
/
toolkits.schema.json
91 lines (90 loc) · 2.89 KB
/
toolkits.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Schema for the toolkit manifest, detailing the installation process for various toolkits on Mac/Windows/Linux OS.",
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Brief overview of the toolkit manifest."
},
"version": {
"type": "string",
"description": "Version of the toolkit manifest."
},
"author": {
"type": "string",
"description": "Author of the toolkit manifest."
},
"toolkits": {
"type": "array",
"description": "The list of toolkits to be installed by the toolkit.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tool."
},
"description": {
"type": "string",
"description": "Brief description of the tool."
},
"installations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"os": {
"type": "string",
"enum": [
"macos",
"windows",
"linux"
],
"description": "Operating system for which the tool is to be installed."
},
"arch": {
"type": "string",
"enum": [
"x86_64",
"aarch64"
],
"description": "Architecture for which the tool is to be installed."
},
"id": {
"type": "string",
"description": "The ID of the tool which is used to identify whether the tool is installed or not. For example, 'brew' for Homebrew, 'Visual Studio Code.app' for Visual Studio Code, etc."
},
"type": {
"type": "string",
"enum": [
"dmg",
"zip",
"exe",
"shell",
"deb"
],
"description": "Type of the installation tool. Toolkit will use different methods to install the package based on the type."
},
"source": {
"type": "string",
"description": "The Source which how to download and install the tool."
},
"postInstall": {
"type": "string",
"description": "The command to run after the installation of the tool."
}
},
"required": [
"os",
"id",
"type",
"source"
]
}
}
}
}
}
}
}