-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest_template.ejs
77 lines (76 loc) · 3.42 KB
/
manifest_template.ejs
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
<?xml version="1.0" encoding="UTF-8" ?>
<ExtensionManifest Version="5.0" ExtensionBundleId="<%= bundleId %>" ExtensionBundleVersion="<%= version %>"
ExtensionBundleName="<%= bundleName %>" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ExtensionList>
<%_ Object.keys(extensions).forEach((extensionKey) => { _%>
<Extension Id="<%= bundleId %>.<%= extensionKey %>" Version="<%= version %>" />
<%_ }) _%>
</ExtensionList>
<ExecutionEnvironment>
<HostList>
<%_ Object.keys(hosts).forEach((hostKey) => { _%>
<Host Name="<%= hostKey %>" Version="<%= hosts[hostKey] %>" />
<%_ }) _%>
</HostList>
<LocaleList>
<%_ locales.forEach((locale) => { _%>
<Locale Code="<%= locale %>" />
<%_ }) _%>
</LocaleList>
<RequiredRuntimeList>
<%_ Object.keys(requiredRuntimes).forEach((requiredRuntimeKey) => { _%>
<RequiredRuntime Name="<%= requiredRuntimeKey %>" Version="<%= requiredRuntimes[requiredRuntimeKey] %>" />
<%_ }) _%>
</RequiredRuntimeList>
</ExecutionEnvironment>
<DispatchInfoList>
<%_ Object.keys(extensions).forEach((key) => { _%>
<Extension Id="<%= bundleId %>.<%= key %>">
<DispatchInfo>
<Resources>
<%_ if (extensions[key].mainPath) { _%>
<MainPath><%= extensions[key].mainPath %></MainPath>
<%_ } _%>
<%_ if (extensions[key].scriptPath) { _%>
<ScriptPath><%= extensions[key].scriptPath %></ScriptPath>
<%_ } _%>
<CEFCommandLine>
<%_ extensions[key].commandLine.forEach((item) => { _%>
<Parameter><%= item %></Parameter>
<%_ }) _%>
</CEFCommandLine>
</Resources>
<Lifecycle>
<AutoVisible><%= extensions[key].autoVisible %></AutoVisible>
</Lifecycle>
<UI>
<Type><%= extensions[key].type %></Type>
<%_ if (extensions[key].showMenu) { _%>
<Menu><%= extensions[key].title %></Menu>
<%_ } _%>
<Geometry>
<%_ if (extensions[key].size) { _%>
<Size>
<Width><%= extensions[key].size[0] %></Width>
<Height><%= extensions[key].size[1] %></Height>
</Size>
<%_ } _%>
<%_ if (extensions[key].maxSize) { _%>
<MaxSize>
<Width><%= extensions[key].maxSize[0] %></Width>
<Height><%= extensions[key].maxSize[1] %></Height>
</MaxSize>
<%_ } _%>
<%_ if (extensions[key].minSize) { _%>
<MinSize>
<Width><%= extensions[key].minSize[0] %></Width>
<Height><%= extensions[key].minSize[1] %></Height>
</MinSize>
<%_ } _%>
</Geometry>
</UI>
</DispatchInfo>
</Extension>
<%_ }) _%>
</DispatchInfoList>
</ExtensionManifest>