-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
149 lines (148 loc) · 5.02 KB
/
electron-builder.yml
File metadata and controls
149 lines (148 loc) · 5.02 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
appId: com.opencowork.app
productName: OpenCoWork
directories:
buildResources: build
afterPack: build/after-sign-mac.cjs
files:
- '!**/.vscode/*'
- '!src/*'
- '!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}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
# Exclude renderer-only / build-only node_modules (already bundled by Vite)
- '!node_modules/monaco-editor/**'
- '!node_modules/gpt-tokenizer/**'
- '!node_modules/@lobehub/**'
- '!node_modules/lucide-react/**'
- '!node_modules/lightningcss*/**'
- '!node_modules/@tailwindcss/**'
- '!node_modules/tailwindcss/**'
- '!node_modules/tailwind-merge/**'
- '!node_modules/tw-animate-css/**'
- '!node_modules/@babel/**'
- '!node_modules/rehype-highlight/**'
- '!node_modules/highlight.js/**'
- '!node_modules/framer-motion/**'
- '!node_modules/motion/**'
- '!node_modules/motion-dom/**'
- '!node_modules/motion-utils/**'
- '!node_modules/@radix-ui/**'
- '!node_modules/radix-ui/**'
- '!node_modules/@base-ui/**'
- '!node_modules/react/**'
- '!node_modules/react-dom/**'
- '!node_modules/react-markdown/**'
- '!node_modules/react-syntax-highlighter/**'
- '!node_modules/react-i18next/**'
- '!node_modules/i18next/**'
- '!node_modules/prismjs/**'
- '!node_modules/refractor/**'
- '!node_modules/@emotion/**'
- '!node_modules/polished/**'
- '!node_modules/cmdk/**'
- '!node_modules/sonner/**'
- '!node_modules/next-themes/**'
- '!node_modules/html-to-image/**'
- '!node_modules/immer/**'
- '!node_modules/zustand/**'
- '!node_modules/clsx/**'
- '!node_modules/class-variance-authority/**'
- '!node_modules/remark-gfm/**'
- '!node_modules/remark*/**'
- '!node_modules/rehype*/**'
- '!node_modules/unified/**'
- '!node_modules/unist*/**'
- '!node_modules/hast*/**'
- '!node_modules/mdast*/**'
- '!node_modules/micromark*/**'
- '!node_modules/vfile*/**'
- '!node_modules/@monaco-editor/**'
- '!node_modules/@vitejs/**'
- '!node_modules/@types/**'
- '!node_modules/marked/**'
- '!node_modules/dompurify/**'
- '!node_modules/jiti/**'
- '!node_modules/source-map/**'
- '!node_modules/scheduler/**'
- '!node_modules/ast-types/**'
- '!node_modules/tslib/**'
- '!node_modules/csstype/**'
- '!node_modules/style-to-object/**'
- '!node_modules/property-information/**'
- '!node_modules/space-separated-tokens/**'
- '!node_modules/comma-separated-tokens/**'
- '!node_modules/parse5/**'
- '!node_modules/entities/**'
- '!node_modules/devlop/**'
- '!node_modules/ccount/**'
- '!node_modules/character-entities*/**'
- '!node_modules/decode-named-character-reference/**'
- '!node_modules/stringify-entities/**'
- '!node_modules/zwitch/**'
- '!node_modules/bail/**'
- '!node_modules/trough/**'
- '!node_modules/is-plain-obj/**'
- '!node_modules/lowlight/**'
- '!node_modules/fault/**'
- '!node_modules/format/**'
# Exclude build artifacts from better-sqlite3
- '!node_modules/better-sqlite3/build/Release/obj/**'
- '!node_modules/better-sqlite3/build/deps/**'
- '!node_modules/better-sqlite3/deps/**'
- '!node_modules/better-sqlite3/src/**'
- '!node_modules/better-sqlite3/bin/**'
- '!node_modules/better-sqlite3/docs/**'
- '!node_modules/better-sqlite3/benchmark/**'
# Exclude unnecessary files from all modules
- '!node_modules/**/README.md'
- '!node_modules/**/CHANGELOG.md'
- '!node_modules/**/*.ts'
- '!node_modules/**/*.map'
asarUnpack:
- resources/**
- node_modules/better-sqlite3/**
- node_modules/ssh2/**
- node_modules/cpu-features/**
- node_modules/@jitsi/robotjs/**
- node_modules/node-gyp-build/**
win:
executableName: OpenCoWork
icon: build/icon.ico
legalTrademarks: OpenCoWork
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
oneClick: false
allowToChangeInstallationDirectory: true
mac:
icon: resources/icon-mac.png
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
- NSLocalNetworkUsageDescription: OpenCoWork needs local network access to connect to SSH hosts and local services on your network.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
target:
- AppImage
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: true
publish:
provider: github
owner: AIDotNet
repo: OpenCowork
releaseType: release
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/