Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add publisher in electron builder

I am new to electron and trying to add publisher in electron builder. But when it creates the installer it says publisher as unknown.

My build obj in package.json is

"build": {
    "appId": "app.name",
    "win": {
      "target": "nsis",
      "icon": "iconnewa1.ico"
    },
    "publish": {
      "provider": "s3",
      "bucket": "bucket_name"
    },
    "mac": {
      "category": "app.category",
      "target": [
        "zip",
        "dmg"
      ]
    },
    "nsis": {
      "perMachine": true
    }
  }

Please help me with this. I have search whole documentation to add publisher in electron builder but unable to get any success.

like image 220
Anand Vaidya Avatar asked Sep 16 '25 12:09

Anand Vaidya


1 Answers

You must use Code Signing to avoid that:

The regular (and often cheaper) Code Signing Certificate shows a warning during installation that goes away once enough users installed your application and you've built up trust. The EV Certificate has more trust and thus works immediately without any warnings.

https://www.electron.build/code-signing

like image 54
Hai Pham Avatar answered Sep 18 '25 10:09

Hai Pham