forked from marktext/marktext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
executable file
·166 lines (165 loc) · 4.64 KB
/
electron-builder.yml
File metadata and controls
executable file
·166 lines (165 loc) · 4.64 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
appId: com.github.marktext.marktext
productName: marktext
directories:
buildResources: build
files:
- '!**/.vscode/*'
- '!src/*'
- '!scripts/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
# ================================
# Do not bundle these files
# ================================
- '!node_modules/dragula/resources'
- '!node_modules/**/*.js.map'
- '!node_modules/**/*.cjs.map'
- '!node_modules/**/*.mjs.map'
- '!node_modules/**/*.ts.map'
- '!node_modules/@vscode/ripgrep/{jsconfig.json,*.md,LICENSE}'
- '!node_modules/@vscode/ripgrep/lib/download.js'
- '!node_modules/@vscode/ripgrep/lib/postinstall.js'
- '!node_modules/ced/vendor'
# Large source files
- '!node_modules/mermaid/dist/mermaid.js'
- '!node_modules/mermaid/dist/mermaid.min.js'
- '!node_modules/mermaid/dist/mermaid.esm.min.mjs'
- '!node_modules/katex/dist/katex.min.js'
- '!node_modules/katex/dist/katex.mjs'
# Don't bundle Linux build files
- '!node_modules/ced/build/Release/compact_enc_det.a'
- '!node_modules/**/{*.vcxproj,*.vcxproj.filters}'
- '!node_modules/**/build/Release/{*.lib,*.exp,*.ilk,*.pdb,*.iobj,*.ipdb}'
- '!node_modules/**/build/Release/obj'
# Do not bundle development related files
- '!eslint.config.js'
- '!jsconfig.json'
- '!docs/*'
extraResources:
- from: build/icons
to: icons # ends up at resources/icons/
filter:
- '*.ico'
- from: static
to: static
filter:
- '**/*'
- '!locales/**/!(*.min).json'
npmRebuild: false
electronLanguages: # Avoid packaging all chromium locales since our app has in-built locales
- en-US
asarUnpack:
- resources/**
fileAssociations:
- ext: md
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
- ext: markdown
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
- ext: mmd
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
- ext: mdown
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
- ext: mdtxt
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
- ext: mdtext
name: Markdown
description: Markdown document
mimeType: text/markdown
role: Editor
win:
executableName: marktext
artifactName: 'marktext-win-${arch}-${version}.${ext}'
target:
- target: 'nsis'
arch: [x64]
- target: 'zip'
arch: [x64]
icon: static/icon.ico
nsis:
artifactName: 'marktext-win-${arch}-${version}-setup.${ext}'
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: true
createStartMenuShortcut: true
oneClick: false
allowToChangeInstallationDirectory: true
perMachine: false
include: windows/installer.nsh
mac:
artifactName: 'marktext-mac-${arch}-${version}.${ext}'
entitlementsInherit: build/mac/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
icon: static/icon.icns
notarize: false
target:
- target: dmg
arch: [x64, arm64]
- target: zip
arch: [x64, arm64]
dmg:
artifactName: 'marktext-mac-${arch}-${version}.${ext}'
contents:
- x: 410
y: 240
type: 'link'
path: '/Applications'
- x: 130
y: 240
type: 'file'
linux:
artifactName: 'marktext-linux-${version}.${ext}'
executableName: 'marktext'
description: 'A simple and elegant open-source markdown editor that focused on speed and usability.'
maintainer: 'MarkText Contributors'
category: 'Office;TextEditor;Utility'
mimeTypes:
- 'text/markdown'
icon: 'static/icon.png'
desktop:
entry:
StartupWMClass: 'marktext'
Keywords: 'marktext;'
target:
- AppImage
- snap
- deb
- rpm
- tar.gz
fileAssociations:
- ext: 'md'
name: 'Markdown'
description: 'Markdown document'
- ext: 'markdown'
name: 'Markdown'
description: 'Markdown document'
- ext: 'mmd'
name: 'Markdown'
description: 'Markdown document'
- ext: 'mdown'
name: 'Markdown'
description: 'Markdown document'
- ext: 'mdtxt'
name: 'Markdown'
description: 'Markdown document'
- ext: 'mdtext'
name: 'Markdown'
description: 'Markdown document'