Electron-builder: Unable to publish release due to unknown `em` error

Created on 2 Mar 2018  路  2Comments  路  Source: electron-userland/electron-builder

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"
            ]
        }
    }
question

Most helpful comment

-c.extraMetadata instead of em

All 2 comments

-c.extraMetadata instead of em

ncis should be nsis. I'm not aware of ncis

Was this page helpful?
0 / 5 - 0 ratings