Fix osx build
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
10
res/entitlements.mas.plist
Normal file
10
res/entitlements.mas.plist
Normal 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>
|
||||||
BIN
res/mqttexplorerdev.provisionprofile
Normal file
BIN
res/mqttexplorerdev.provisionprofile
Normal file
Binary file not shown.
Reference in New Issue
Block a user