-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackages.schema.json
82 lines (82 loc) · 3.56 KB
/
packages.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
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"title": "Array of packages",
"items": {
"type": "object",
"required":[
"PackageIdentifier",
"Tags"
],
"properties": {
"PackageIdentifier": {
"type": "string",
"description": "The WinGet specified PackageIdentifier."
},
"Tags": {
"type": "array",
"description": "A user-defined tags to associate with the PackageIdentifier.",
"items": {
"type": "string"
}
},
"Location": {
"type": "string",
"description": "The install location to provide to 'supported' installers."
},
"Version": {
"type": "string",
"description": "The version of the package to install. The latest version will be used when not specified."
},
"VersionLock": {
"type": "boolean",
"description": "When set, the specified 'Version' will always be used even when the user specifies the 'UseLatest' option."
},
"Interactive" : {
"type": "boolean",
"description": "When set, the specified package will always be installed interactively even when the user specifies the 'Force' option."
},
"AdditionalArgs": {
"type": "string",
"description": "A string containing arguments to be passed as-is to the issued WinGet command. This is intended to provide users with access to WinGet options that have not been explicitly specified in the JSON schema of this utility."
},
"PostInstall": {
"type": "object",
"required": [
"Commands",
"Run",
"OnError"
],
"properties": {
"Commands": {
"type": "array",
"description": "The sequence of commands to execute in PowerShell.",
"items": {
"type": "string"
}
},
"Run": {
"type": "string",
"description": "Defines the condition when to run the post-install commands. OnSuccess = Only run if the install was successful. Always = Always run even if the install failed due to user actions. Prompt = Always prompt the user whether to run the commands or not. PromptOnError = Only prompt the user if the install failed, otherwise always run the commands.",
"enum": [
"OnSuccess",
"Prompt",
"PromptOnError",
"Always"
]
},
"OnError": {
"type": "string",
"description": "Defines the behavior when a command encounters an error. Continue = continue command execution. Skip = skip remaining commands. Prompt = prompt on error giving the user the choice to continue, skip, or re-run.",
"enum": [
"Prompt",
"Skip",
"Continue"
]
}
}
}
}
}
}