2194ca85ca
* Use build/ as CircleCI workspace webpack compiles the application code to dist/ and electron-builder treats it as a source of content to be packaged. As such, using this path for CircleCI's workspace can cause unwanted scratch files to be packaged into the app. By instead using build/, we solve the issue. Moving the entitlements plist to the root of the repo is appropriate because that's where all the other build config files currently live. Fixes: #1809 * Update config.yml Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
137 lines
2.8 KiB
JSON
137 lines
2.8 KiB
JSON
{
|
|
"publish": [{
|
|
"provider": "generic",
|
|
"url": "https://releases.mattermost.com/desktop/"
|
|
}],
|
|
"appId": "Mattermost.Desktop",
|
|
"artifactName": "${name}-${version}-${os}-${arch}.${ext}",
|
|
"directories": {
|
|
"buildResources": "src/assets",
|
|
"output": "release"
|
|
},
|
|
"extraMetadata": {
|
|
"main": "index.js"
|
|
},
|
|
"files": [
|
|
"node_modules/bootstrap/dist/**",
|
|
"node_modules/font-awesome/{css,fonts}/**",
|
|
{
|
|
"from": "dist",
|
|
"to": ".",
|
|
"filter": "**/*"
|
|
}
|
|
],
|
|
"protocols": [
|
|
{
|
|
"name": "Mattermost",
|
|
"schemes": [
|
|
"mattermost",
|
|
"http",
|
|
"https",
|
|
"ftp",
|
|
"mailto",
|
|
"tel"
|
|
]
|
|
}
|
|
],
|
|
"afterPack": "scripts/afterpack.js",
|
|
"afterSign": "scripts/notarize.js",
|
|
"deb": {
|
|
"synopsis": "Mattermost Desktop App",
|
|
"depends": ["gconf2", "gconf-service", "libnotify4", "libxtst6", "libnss3"],
|
|
"category": "contrib/net",
|
|
"priority": "optional"
|
|
},
|
|
"linux": {
|
|
"category": "Network;InstantMessaging",
|
|
"target": [
|
|
"deb",
|
|
"tar.gz",
|
|
"appimage",
|
|
"rpm"
|
|
],
|
|
"extraFiles": [
|
|
{
|
|
"filter": [
|
|
"LICENSE.txt",
|
|
"NOTICE.txt"
|
|
]
|
|
},
|
|
{
|
|
"from": "src/assets/linux",
|
|
"filter": [
|
|
"create_desktop_file.sh",
|
|
"app_icon.png",
|
|
"README.md"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"mac": {
|
|
"category": "public.app-category.productivity",
|
|
"target": [
|
|
"zip",
|
|
"dmg"
|
|
],
|
|
"darkModeSupport": true,
|
|
"extraResources": [
|
|
{
|
|
"filter": [
|
|
"LICENSE.txt",
|
|
"NOTICE.txt"
|
|
]
|
|
}
|
|
],
|
|
"hardenedRuntime": true,
|
|
"gatekeeperAssess": true,
|
|
"entitlements": "./entitlements.mac.plist",
|
|
"entitlementsInherit": "./entitlements.mac.plist",
|
|
"extendInfo": {
|
|
"NSMicrophoneUsageDescription": "Microphone access may be used by Mattermost plugins, such as Jitsi video conferencing.",
|
|
"NSCameraUsageDescription": "Camera access may be used by Mattermost plugins, such as Jitsi video conferencing.",
|
|
"LSFileQuarantineEnabled": true
|
|
}
|
|
},
|
|
"dmg": {
|
|
"background": "src/assets/osx/DMG_BG.png",
|
|
"contents": [
|
|
{
|
|
"x": 135,
|
|
"y": 165
|
|
},
|
|
{
|
|
"x": 407,
|
|
"y": 165,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
],
|
|
"iconSize": 120,
|
|
"iconTextSize": 14,
|
|
"window": {
|
|
"height": 380
|
|
}
|
|
},
|
|
"squirrelWindows": {
|
|
"iconUrl": "file://src/assets/icon.ico",
|
|
"artifactName": "${name}-setup-${version}-${arch}.${ext}"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis",
|
|
"zip"
|
|
],
|
|
"extraFiles": [
|
|
{
|
|
"filter": [
|
|
"LICENSE.txt",
|
|
"NOTICE.txt"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"nsis": {
|
|
"artifactName": "${name}-setup-${version}-win.${ext}"
|
|
}
|
|
}
|