scratch-desktop/electron-builder.yaml
Christopher Willis-Ford af73790306 macOS: request camera and microphone access
Note `audio-input` and `camera` were already in `entitlements.plist`

Supporting changes:
- Add `allow-jit` entitlement since documentation says it's needed.
- Only use sandbox for MAS build, not for non-MAS macOS build.
  NOTE: both still use the hardened runtime, as required on Catalina.
- Remove `entitlements.inherit.plist` since it matches default settings.
- Add to `electron-builder.yaml` English descriptions for why the app
  requests access to the microphone and camera. I'm not yet sure if
  there's a way to localize these.
- Minor tweaks in `electron-builder.yaml`.
2020-03-17 18:55:40 -07:00

37 lines
1.2 KiB
YAML

directories:
buildResources: buildResources
output: dist
appId: edu.mit.scratch.scratch-desktop
productName: "Scratch Desktop"
afterSign: "scripts/afterSign.js"
mac:
category: public.app-category.education
entitlements: buildResources/entitlements.mac.plist
extendInfo:
NSCameraUsageDescription: >-
This app requires camera access when taking a photo in the paint editor or using the video sensing blocks.
NSMicrophoneUsageDescription: >-
This app requires microphone access when recording sounds or detecting loudness.
gatekeeperAssess: true
hardenedRuntime: true
icon: buildResources/ScratchDesktop.icns
provisioningProfile: embedded.provisionprofile
target:
- dmg
- mas
type: distribution
mas:
category: public.app-category.education
entitlements: buildResources/entitlements.mas.plist
icon: buildResources/ScratchDesktop.icns
win:
icon: buildResources/ScratchDesktop.ico
target:
- appx
- nsis
appx:
identityName: ScratchFoundation.ScratchDesktop
publisherDisplayName: "Scratch Foundation"
publisher: "CN=2EC43DF1-469A-4119-9AB9-568A0A1FF65F"
nsis:
oneClick: false # allow user to choose per-user or per-machine