Fix osx build

This commit is contained in:
Thomas Nordquist
2019-03-06 13:17:59 +01:00
parent 5adb2bb5c8
commit 1763dc7574
5 changed files with 15 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ install:
script: script:
- yarn run build - yarn run build
- yarn test - yarn test
- 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
- 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 - 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
- if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi - if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package linux; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package linux; fi

View File

@@ -21,6 +21,7 @@
}, },
"build": { "build": {
"appId": "mqtt-explorer", "appId": "mqtt-explorer",
"productName": "MQTT Explorer",
"nodeGypRebuild": false, "nodeGypRebuild": false,
"mac": { "mac": {
"appId": "de.t7n.apps.mqtt-explorer", "appId": "de.t7n.apps.mqtt-explorer",
@@ -28,7 +29,8 @@
"publish": [ "publish": [
"github" "github"
], ],
"provisioningProfile": "res/MQTT_Explorer_Store_Distribution_Profile.provisionprofile" "provisioningProfile": "res/MQTT_Explorer_Store_Distribution_Profile.provisionprofile",
"entitlements": "res/entitlements.mas.plist"
}, },
"linux": { "linux": {
"category": "Development", "category": "Development",

View File

@@ -81,7 +81,7 @@ async function executeBuild() {
export interface BuildInfo { export interface BuildInfo {
platform: 'win' | 'linux' | 'mac' platform: 'win' | 'linux' | 'mac'
package: 'portable' | 'nsis' | 'appx' | 'AppImage' | 'snap' | 'dmg' | 'zip' | 'mas' package: 'portable' | 'nsis' | 'appx' | 'AppImage' | 'snap' | 'dmg' | 'zip' | 'mas' | 'mas-dev'
} }
async function buildWithOptions(options: builder.CliOptions, buildInfo: BuildInfo) { async function buildWithOptions(options: builder.CliOptions, buildInfo: BuildInfo) {

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

Binary file not shown.