-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.json5
80 lines (80 loc) · 1.8 KB
/
electron-builder.json5
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
/**
* @see https://www.electron.build/configuration/configuration
*/
{
appId: "com.liumingye.my-ocr",
productName: "MY-OCR",
asar: true,
directories: {
output: "release/${version}",
},
files: ["dist-electron", "dist"],
linux: {
artifactName: "${productName}_${version}_${arch}.${ext}",
target: ["deb"],
icon: "build/logo.png",
description: "my-ocr",
category: "Application;AudioVideo;Graphics;",
extraFiles: [
{
from: "./release/ocr_server/",
to: "ocr_server",
},
{
from: "./build/logo.png",
to: "resources",
},
],
desktop: {
Icon: "/opt/MY-OCR/resources/logo.png",
Category: "Application;AudioVideo;Graphics;",
},
},
mac: {
target: [
{
target: "default",
arch: ["x64"],
},
],
artifactName: "${productName}_${version}_${arch}.${ext}",
target: ["dmg", "zip"],
extraFiles: {
from: "./release/ocr_server/",
to: "ocr_server",
},
icon: "build/logo.icns",
},
win: {
target: [
{
target: "nsis",
arch: ["x64"],
},
],
artifactName: "${productName}_${version}_${arch}.${ext}",
icon: "build/logo.ico",
extraFiles: {
from: "./release/ocr_server/",
to: "ocr_server",
},
},
nsis: {
oneClick: false,
guid: "0852840C-7E5B-F395-7A62-DFD7BFDBB6DD",
perMachine: true,
allowElevation: true,
allowToChangeInstallationDirectory: true,
installerIcon: "build/logo.ico",
uninstallerIcon: "build/logo.ico",
installerHeaderIcon: "build/logo.ico",
createDesktopShortcut: true,
createStartMenuShortcut: true,
},
publish: {
provider: "generic",
url: "http://136.33.32.127/my-ocr/",
channel: "latest",
updaterCacheDirName: "my-ocr-updater",
},
}