-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathelectron-builder.json5
More file actions
executable file
·144 lines (144 loc) · 3.04 KB
/
electron-builder.json5
File metadata and controls
executable file
·144 lines (144 loc) · 3.04 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
productName: "MapCache",
appId: "mil.nga.mapcache",
artifactName: "${productName}.${version}.${ext}",
copyright: "Copyright © 2022 National Geospatial-Intelligence Agency",
files: [
'!**/.idea/*',
'!src/*',
'!changelog/*',
'!images/*',
'!electron.vite.config.ts',
'!electron-builder.json5',
'!{BUILD.md,README.md}',
'!{yarn.lock}',
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}',
'dist/main',
'dist/preload',
'dist/renderer',
'resources',
'extraResources'
],
extraResources: [
{
from: "./node_modules/@ngageoint/geopackage/dist/canvaskit/canvaskit.wasm",
to: "canvaskit/canvaskit.wasm",
},
{
from: "./resources/offline.gpkg",
to: "extraResources/offline.gpkg",
"filter": ["**/*"]
}
],
protocols: [
{
name: "MapCache",
role: "Editor",
schemes: ["mapcache"]
}
],
asarUnpack: [
"**/node_modules/**/*",
"**/dist/main/chunks/**/*",
"**/dist/main/mapcacheThread.js",
"**/dist/preload/**/*",
"**/dist/renderer/**/*",
"**/resources/**/*",
"**/extraResources/**/*"
],
directories: {
buildResources: "buildResources"
},
buildDependenciesFromSource: true,
dmg: {
contents: [
{
x: 410,
y: 150,
type: "link",
path: "/Applications"
},
{
x: 130,
y: 150,
type: "file"
}
],
sign: true
},
mac: {
category: "public.app-category.productivity",
fileAssociations: [
{
ext: 'gpkg',
name: 'GeoPackage File',
role: 'Editor',
icon: 'gpkg_doc.icns'
}
],
target: [
{
target: "dmg",
}
],
icon: "buildResources/icon.icns",
hardenedRuntime : true,
gatekeeperAssess: false,
entitlements: "buildResources/entitlements.mac.plist",
entitlementsInherit: "buildResources/entitlements.mac.plist",
artifactName: "${productName}.${version}.${ext}"
},
mas: {
category: "public.app-category.productivity",
fileAssociations: [
{
ext: 'gpkg',
name: 'GeoPackage File',
role: 'Editor',
icon: 'gpkg_doc.icns'
}
],
target: [
{
target: "dmg",
arch: [
"universal"
]
}
],
icon: "buildResources/icon.icns",
hardenedRuntime : true,
gatekeeperAssess: false,
entitlements: "buildResources/entitlements.mas.plist",
entitlementsInherit: "buildResources/entitlements.mas.plist"
},
win: {
fileAssociations: [
{
ext: 'gpkg',
name: 'GeoPackage File',
icon: 'gpkg_doc.ico'
}
],
target: [
"portable",
"nsis",
"appx"
],
icon: "buildResources/icon.ico"
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
include: "buildResources/uninstaller.nsh",
artifactName: "${productName}.${version}.Installer.${ext}"
},
linux: {
icon: "buildResources/icons",
target: [
"deb",
"rpm",
"tar.gz"
]
}
}