I receive the following when running my release script:
Unknown argument: em
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c ./release.sh
The contents of my release.sh file:
#!/bin/bash
GH_TOKEN=$GH_TOKEN
bump --prompt
rm -rf dist && mkdir dist
yarn build
build --em.main=build/electron.js -p always
The build section of my package.json:
"build": {
"appId": "io.getstream.winds",
"productName": "Winds",
"copyright": "Copyright 漏 2018 Stream.io Inc",
"directories": {
"buildResources": "build",
"output": "dist"
},
"mac": {
"icon": "../assets/icon.icns",
"type": "distribution",
"category": "public.app-category.social-network",
"entitlements": "../assets/entitlements.mac.plist"
},
"mas": {
"icon": "../assets/icon.icns",
"type": "distribution",
"category": "public.app-category.social-network",
"entitlements": "../assets/entitlements.mas.plist"
},
"win": {
"icon": "../assets/icon.ico",
"target": [
"ncis"
]
}
}
-c.extraMetadata instead of em
ncis should be nsis. I'm not aware of ncis
Most helpful comment
-c.extraMetadata instead of em