Skip to content

Commit 1763dc7

Browse files
Fix osx build
1 parent 5adb2bb commit 1763dc7

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ install:
3030
script:
3131
- yarn run build
3232
- yarn test
33+
- export TRAVIS_BUILD_NUMBER="" # Override travis build number since it is uses for tagging the binary version https://github.com/electron-userland/electron-builder/issues/3730
3334
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -e GH_TOKEN=$GH_TOKEN -e GIT_TAG=$TRAVIS_TAG --rm -v `pwd`:/app uitest sh -c "cd app && docker/testMounted.sh"; fi
3435
- if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi
3536
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package linux; fi

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
2121
},
2222
"build": {
2323
"appId": "mqtt-explorer",
24+
"productName": "MQTT Explorer",
2425
"nodeGypRebuild": false,
2526
"mac": {
2627
"appId": "de.t7n.apps.mqtt-explorer",
2728
"category": "public.app-category.developer-tools",
2829
"publish": [
2930
"github"
3031
],
31-
"provisioningProfile": "res/MQTT_Explorer_Store_Distribution_Profile.provisionprofile"
32+
"provisioningProfile": "res/MQTT_Explorer_Store_Distribution_Profile.provisionprofile",
33+
"entitlements": "res/entitlements.mas.plist"
3234
},
3335
"linux": {
3436
"category": "Development",

package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function executeBuild() {
8181

8282
export interface BuildInfo {
8383
platform: 'win' | 'linux' | 'mac'
84-
package: 'portable' | 'nsis' | 'appx' | 'AppImage' | 'snap' | 'dmg' | 'zip' | 'mas'
84+
package: 'portable' | 'nsis' | 'appx' | 'AppImage' | 'snap' | 'dmg' | 'zip' | 'mas' | 'mas-dev'
8585
}
8686

8787
async function buildWithOptions(options: builder.CliOptions, buildInfo: BuildInfo) {

res/entitlements.mas.plist

Lines changed: 10 additions & 0 deletions
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.network.client</key>
8+
<true/>
9+
</dict>
10+
</plist>

res/mqttexplorerdev.provisionprofile

7.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)