forked from Zettlr/Zettlr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.yml
118 lines (118 loc) · 2.94 KB
/
electron-builder.yml
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
# Electron Builder configuration file: Directs Electron builder to produce
# packages for our officially supported distributions.
#
# Formerly the "build" key in the package.json.
appId: com.zettlr.app
productName: Zettlr
npmRebuild: false
copyright: Zettlr is licensed under GNU GPL v3.
fileAssociations:
- ext: md
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
isPackage: false
- ext: markdown
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
isPackage: false
- ext: rmd
name: RMarkdown
description: RMarkdown document
mimeType: text/markdown
role: Editor
isPackage: false
directories:
output: release
#
# Generic macOS options
#
mac:
category: "public.app-category.productivity"
target:
- dmg
artifactName: "Zettlr-${version}-${arch}.${ext}"
icon: "./resources/icons/icon.icns"
darkModeSupport: true
hardenedRuntime: true
gatekeeperAssess: false
entitlements: "./scripts/assets/entitlements.plist"
entitlementsInherit: "./scripts/assets/entitlements.plist"
#
# Generic Windows options
#
win:
target:
- nsis
artifactName: "Zettlr-${version}-${arch}.${ext}"
icon: "./resources/icons/icon.ico"
#
# Generic Linux options
#
linux:
target:
- AppImage
- deb
- rpm
- zip
artifactName: "Zettlr-${version}-${arch}.${ext}"
executableName: Zettlr
synopsis: Markdown editor
category: Office
icon: "./resources/icons/png"
desktop:
StartupWMClass: zettlr
#
# Configuration for DMG builds
#
dmg:
background: "./resources/icons/dmg/dmg_back.tiff"
icon: "./resources/icons/icon.icns"
contents:
- x: 130
y: 220
- x: 410
y: 220
type: link
path: "/Applications"
window:
width: 540
height: 400
#
# Configuration for NSIS builds
#
nsis:
oneClick: false
perMachine: false
allowElevation: true
allowToChangeInstallationDirectory: true
uninstallDisplayName: ${productName}
installerHeader: "./resources/NSIS/NSISinstallerHeader.bmp"
installerSidebar: "./resources/NSIS/NSISinstallerSidebar.bmp"
license: ./LICENSE
#
# Configuration for Debian builds
#
deb:
priority: optional
compression: xz
#
# Configuration for Fedora builds
#
rpm:
compression: xz
# We need to set an RPM flag to none to avoid conflicts with other Electron
# apps. This is a fedora-specific feature baked into the RPM builds, and if I
# didn't misunderstand something, it seems to be a form of Lockfile.
#
# What is this? --> https://fedoraproject.org/wiki/Releases/FeatureBuildId
# How do we avoid this? --> https://github.com/jordansissel/fpm/issues/1503
# How do we implement this? --> https://github.com/ferdium/ferdium-app/issues/416
# Docs on this option --> https://www.electron.build/configuration/linux
# Other flags we could use --> https://github.com/jordansissel/fpm/wiki#usage
# DEBUG: This is buggy, since Electron builder always escapes these options.
# fpm:
# - --rpm-rpmbuild-define '_build_id_links none'