Skip to content

Commit 08e4da0

Browse files
committed
Enable MAS build
1 parent 8811940 commit 08e4da0

4 files changed

+50
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ src-renderer/packager/standalone.html
1313

1414
# Debian release scripts create files that shouldn't be committed
1515
deb
16+
17+
# Mac App Store
18+
distribution.provisionprofile
19+
development.provisionprofile

build/entitlements.mas.inherit.plist

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.inherit</key>
8+
<true/>
9+
</dict>
10+
</plist>

build/entitlements.mas.plist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-jit</key>
10+
<true/>
11+
<key>com.apple.security.device.audio-input</key>
12+
<true/>
13+
<key>com.apple.security.device.camera</key>
14+
<true/>
15+
<key>com.apple.security.device.microphone</key>
16+
<true/>
17+
<key>com.apple.security.files.user-selected.read-only</key>
18+
<true/>
19+
<key>com.apple.security.files.user-selected.read-write</key>
20+
<true/>
21+
<key>com.apple.security.network.client</key>
22+
<true/>
23+
</dict>
24+
</plist>

package.json

+12
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
"entitlements": "build/entitlements.mac.plist",
118118
"entitlementsInherit": "build/entitlements.mac.plist",
119119
"extendInfo": {
120+
"ITSAppUsesNonExemptEncryption": false,
121+
"LSMultipleInstancesProhibited": true,
120122
"NSCameraUsageDescription": "This app requires camera access when using the video sensing blocks.",
121123
"NSMicrophoneUsageDescription": "This app requires microphone access when recording sounds or detecting loudness."
122124
},
@@ -127,6 +129,16 @@
127129
}
128130
]
129131
},
132+
"mas": {
133+
"hardenedRuntime": false,
134+
"entitlements": "build/entitlements.mas.plist",
135+
"entitlementsInherit": "build/entitlements.mas.inherit.plist",
136+
"provisioningProfile": "build/distribution.provisionprofile"
137+
},
138+
"masDev": {
139+
"type": "development",
140+
"provisioningProfile": "build/development.provisionprofile"
141+
},
130142
"linux": {
131143
"artifactName": "${productName}-${os}-${arch}-${version}.${ext}",
132144
"icon": "./build/",

0 commit comments

Comments
 (0)