mattermost-desktop/electron-builder.json
Devin Binnie 1e35a97f33
[MM-36326][MM-45669] Added Native Node Module support - incl demo to fix DND issue (#2195)
* [MM-36326] Added Native Node Module support - incl demo to fix DND issue

* Fix OS per build

* Fix to include priority alarms on Windows

* Update node command

* Fixes for mac (only work on non-MAS build)

* Attempt to rebuild properly since electron-builder is having issues with a module

* Show me more logs maybe idk

* Try with ignore-scripts

* Force async to work asyncly

* PR feedback and ESLint fixes

* Add comment for node-gyp

* Revert me: test msi and mac installer

* Revert me too

* Try reverting back to the old system cause the new one miraculously broke...

* Add ignore scripts to makefile

* Ignore non-macho files :P

* Revert "Revert me too"

This reverts commit 074dc9551a2d8ce34a23a3abaeed937d957e8b76.

* Revert "Revert me: test msi and mac installer"

This reverts commit 0ac998c26a824e7136bdfdc825280a407bb1aa7f.
2022-08-02 11:33:48 -04:00

169 lines
3.8 KiB
JSON

{
"publish": [
{
"provider": "generic",
"url": "https://releases.mattermost.com/desktop"
}
],
"appId": "Mattermost.Desktop",
"artifactName": "${version}/${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}/**",
"!**/node_modules/macos-notification-state/build/Release/.forge-meta",
{
"from": "dist",
"to": ".",
"filter": "**/*"
}
],
"protocols": [
{
"name": "Mattermost",
"schemes": [
"mattermost",
"http",
"https",
"ftp",
"mailto",
"tel"
]
}
],
"beforePack": "scripts/beforepack.js",
"afterPack": "scripts/afterpack.js",
"afterSign": "scripts/notarize.js",
"afterAllArtifactBuild": "scripts/afterbuild.js",
"deb": {
"artifactName": "${version}/${name}_${version}-1_${arch}.${ext}",
"synopsis": "Mattermost Desktop App",
"depends": [
"gconf2",
"gconf-service",
"libnotify4",
"libxtst6",
"libnss3"
],
"category": "contrib/net",
"priority": "optional"
},
"asarUnpack": [
"./node_modules/macos-notification-state/**/*",
"./node_modules/windows-focus-assist/**/*"
],
"linux": {
"category": "Network;InstantMessaging",
"target": [
"deb",
"tar.gz",
"appimage",
"rpm"
],
"icon": "src/assets/icon.icns",
"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"
]
}
],
"icon": "src/assets/osx/osx_icon.icns",
"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
}
},
"mas": {
"hardenedRuntime": false,
"entitlements": "./entitlements.mas.plist",
"entitlementsInherit": "./entitlements.mas.inherit.plist",
"entitlementsLoginHelper": "./entitlements.mas.inherit.plist",
"provisioningProfile": "./mas.provisionprofile",
"extendInfo": {
"ITSAppUsesNonExemptEncryption": false
}
},
"masDev": {
"provisioningProfile": "./mas-dev.provisionprofile"
},
"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": "${version}/${name}-setup-${version}-${arch}.${ext}"
},
"win": {
"target": [
"nsis",
"zip"
],
"extraFiles": [
{
"filter": [
"LICENSE.txt",
"NOTICE.txt"
]
}
],
"publisherName": "CN=\"Mattermost, Inc.\", O=\"Mattermost, Inc.\", L=Palo Alto, S=California, C=US"
},
"nsis": {
"artifactName": "${version}/${name}-setup-${version}-win.${ext}"
}
}