-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
metadata.ts
62 lines (52 loc) · 1.5 KB
/
metadata.ts
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
import { Configuration } from "../configuration"
export interface Metadata {
/**
* The application name.
* @required
*/
readonly name?: string
/**
* The application description.
*/
readonly description?: string
/**
* The url to the project [homepage](https://docs.npmjs.com/files/package.json#homepage) (NuGet Package `projectUrl` (optional) or Linux Package URL (required)).
*
* If not specified and your project repository is public on GitHub, it will be `https://github.com/${user}/${project}` by default.
*/
readonly homepage?: string | null
/**
* *linux-only.* The [license](https://docs.npmjs.com/files/package.json#license) name.
*/
readonly license?: string | null
readonly author?: AuthorMetadata | null
/**
* The [repository](https://docs.npmjs.com/files/package.json#repository).
*/
readonly repository?: string | RepositoryInfo | null
/**
* The electron-builder configuration.
*/
readonly build?: Configuration
/** @private */
readonly dependencies?: { [key: string]: string }
/** @private */
readonly version?: string
/** @private */
readonly type?: string
/** @private */
readonly shortVersion?: string | null
/** @private */
readonly shortVersionWindows?: string | null
/** @private */
readonly productName?: string | null
/** @private */
readonly main?: string | null
}
export interface AuthorMetadata {
readonly name: string
readonly email?: string
}
export interface RepositoryInfo {
readonly url: string
}