diff --git a/.travis.yml b/.travis.yml index e9dd133..a60e4d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ install: script: - yarn run build - 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_TAG" != "" ]]; then yarn run prepare-release; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package linux; fi diff --git a/package.json b/package.json index 4f7fc69..80fda02 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ }, "build": { "appId": "mqtt-explorer", + "productName": "MQTT Explorer", "nodeGypRebuild": false, "mac": { "appId": "de.t7n.apps.mqtt-explorer", @@ -28,7 +29,8 @@ "publish": [ "github" ], - "provisioningProfile": "res/MQTT_Explorer_Store_Distribution_Profile.provisionprofile" + "provisioningProfile": "res/MQTT_Explorer_Store_Distribution_Profile.provisionprofile", + "entitlements": "res/entitlements.mas.plist" }, "linux": { "category": "Development", diff --git a/package.ts b/package.ts index 8268e44..f844d42 100644 --- a/package.ts +++ b/package.ts @@ -81,7 +81,7 @@ async function executeBuild() { export interface BuildInfo { 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) { diff --git a/res/entitlements.mas.plist b/res/entitlements.mas.plist new file mode 100644 index 0000000..1230664 --- /dev/null +++ b/res/entitlements.mas.plist @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + + diff --git a/res/mqttexplorerdev.provisionprofile b/res/mqttexplorerdev.provisionprofile new file mode 100644 index 0000000..98d7567 Binary files /dev/null and b/res/mqttexplorerdev.provisionprofile differ