question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-builder not generating "latest.yml" file on Windows (NSIS)

See original GitHub issue
  • Version: 8.6.0
  • Target: win32 x64

  • Build command: npm run dist --python="C:/Python27/python.exe"

  • Console output:

> RacingPlus@ dist2 D:\Repositories\isaac-racing-client
> build --publish always

Rebuilding native production dependencies for arch x64
Packaging for win32 x64 using electron 1.4.7 to dist\win-unpacked
Packaging NSIS installer for arch x64
Building NSIS installer
  • Main package.json:
{
  "name": "RacingPlus",
  "description": "A racing mod for The Binding of Isaac: Afterbirth+.",
  "scripts": {
    "start": "electron ./app",
    "postinstall": "install-app-deps",
    "pack": "build --dir",
    "dist": "build",
  },
  "build": {
    "appId": "org.electron.isaacRacingClient",
    "win": {},
    "publish": {
      "provider": "github"
    }
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Zamiell/isaac-racing-client.git"
  },
  "license": "GPL-3.0",
  "bugs": {
    "url": "https://github.com/Zamiell/isaac-racing-client/issues"
  },
  "homepage": "https://isaacracing.net",
  "devDependencies": {
    "electron": "^1.4.7",
    "electron-builder": "^8.6.0"
  }
}
  • App package.json (in app subdirectory):
{
  "name": "RacingPlus",
  "productName": "Racing+",
  "main": "./main.js",
  "version": "0.0.1",
  "description": "A racing mod for The Binding of Isaac: Afterbirth+.",
  "author": "Racing+",
  "license": "GPL-3.0",
  "dependencies": {
    "electron-auto-updater": "^0.5.3",
    "electron-is-dev": "^0.1.2",
    "fs-extra": "^1.0.0",
    "keytar": "^3.0.2",
    "tail": "^1.2.1",
    "teeny-conf": "^1.0.1"
  }
}
  • Node version: v6.9.1
  • NPM version: 3.10.8
  • OS: Windows 7 x64 Professional

After building my app, I get a Racing+ Setup 0.0.1.exe in my dist subfolder. This is all well and good. But shouldn’t there be a latest.yml there too? I need to upload that file to my GitHub releases page in order for automatic updating to work. Where am I supposed to get the latest.yml file?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
Oscaratocommented, Feb 23, 2017

Just add line on “package.json” “win”: { “publish”:[{“provider”: “generic”, “url”: “your url (it could be localhost)”}] } and the “latest.yml” wil be generate

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron-builder does not create latest.yml for auto updates ...
I'm trying to generate the auto update files to upload to a server. After signing and notarizing I expect the latest.yml file to...
Read more >
Auto Update - electron-builder
yml cannot be created, which causes autoUpdater error. Default target for macOS is dmg + zip , so there is no need to...
Read more >
NSIS - electron-builder
NSIS. The top-level nsis key contains set of options instructing electron-builder on how it should build NSIS target (default target for Windows).
Read more >
Common Configuration - electron-builder
in the package.json file of your project using the build key on the top level: "build": { "appId": "com.example.app" } · or through...
Read more >
Command Line Interface (CLI) - electron-builder
For example, if you don't want to pass --ia32 and --x64 flags each time, but instead build by default NSIS target for all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found