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.

latest.yml not created

See original GitHub issue
  • electron-builder version: 19.7.1
  • electron-updater version: 1.16.0
  • Target: x64 windows NSIS (using the docker container)

After building several times, each time increasing the app version number, my dist/ folder looks like this:

$ ll dist/
total 232M
-rw-r--r-- 1 root root  44M Jun 21 14:56 infinity-vault Setup 1.0.0.exe
-rw-r--r-- 1 root root  88M Jun 21 15:01 infinity-vault Setup 1.0.1.exe
-rw-r--r-- 1 root root 101M Jun 21 15:41 infinity-vault Setup 1.0.2.exe
drwxr-xr-x 4 root root 4.0K Jun 21 15:39 win-unpacked/

Notice, there is no latest.yml. I just upgraded to 19.7.1 today, and earlier today I was getting the latest.yml. There is also no app-update.yml in the win-upacked/resources folder.

I find it strange that each of the installer files is larger than the previous one.

My build config:


"use strict";

const builder = require("electron-builder");
const Platform = builder.Platform;

let t_linux = Platform.LINUX.createTarget();
let t_windows = Platform.WINDOWS.createTarget();

let win_config = { 
  appId: 'com.testapp.sr',
  productName: 'InfinityVault',
  artifactName: "${productName}-Setup-${version}.${ext}",
  win: {  target: ['nsis']  }, 
  nsis: { artifactName: "${productName}-Setup-${version}.${ext}" } };

let linux_config = { appId: 'com.testapp.sr',
  productName: 'infinityvault',
  linux: { target: 'deb' } };

let app_config = { 
  targets: t_windows,
  config: win_config,
  artifactName: "${productName}_Setup_${version}.${ext}",
  publish: [{ provider: "generic", url: "http://10.1.10.187:8080/" }]

};
builder.build(app_config).then(data => {
  console.log('got here', data);
}).catch(error => {
  console.log('error', error.message.slice(0, 150));
});

(sorry about all the artifactName elements, that doesn’t work either…)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
codeclericcommented, Jun 22, 2017

The following is what I am now using based on your above response. This has not changed the error, it still says there is no publishConfig. What am I doing wrong?

let win_config = { 
  appId: 'com.testapp.sr',
  productName: 'InfinityVault',
  artifactName: "${productName}-Setup-${version}.${ext}",
  win: { target: ['nsis'] },
  nsis: { artifactName: "${productName}-Setup-${version}.${ext}" }, 
  publish: [{ provider: "generic", url: "http://10.1.10.187:8080/" }] 
  };

let app_config = {
  targets: t_windows,
  config: win_config
};

0reactions
lazlojulycommented, Jun 26, 2017

I am having a similar issue, no latest.yml generated. https://github.com/electron-userland/electron-builder/issues/1742

@codecleric have you managed to fix it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-builder not generating "latest.yml" file on Windows ...
Fix requires deep understanding what electron-builder does and how. Some design decision should be made. In short: we cannot generate latest.yml ...
Read more >
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
Mac, otherwise latest-mac.yml cannot be created, which causes autoUpdater error. Default target for macOS is dmg + zip , so there is no...
Read more >
Problem with app update yml files is not generated in electron?
on('update-downloaded', (info) => { const message = { type: 'info', buttons: ['Restart', 'Update'], title: `${appName} Update`, detail: `A new ...
Read more >
Using an Auto Update API for Electron App's and Hosting it on ...
Hmm okay... but why not just use electron-updater's built in ... will ask for that latest.yml file, and use the information in it...
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