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.

App-update.yml is missing in NSIS builds

See original GitHub issue
  • Version: electron-builder: 20.3.1 electron-updater: 2.21.0 electron-publisher-s3: 20.2.0
  • Target: NSIS
  • Notes Error from logs: No such file or directory, open C:...\resources\app-update.yml. I’ve read a lot of related issues, but still suffer from this issue on windows with NSIS target. For mac with default target file is created successfully.

My build config:

productName: PRODUCT_NAME,
appId: APP_ID,
artifactName: '${productName}.${ext}', // eslint-disable-line no-template-curly-in-string
directories: {
	app: paths.dist(),
	buildResources: paths.project('resources-pack'),
	output: paths.outputs(),
},

// OSX paltform:
mac: {
	icon: BETA ? 'icon-beta.icns' : 'icon.icns',
	publish: {
              provider: 's3',
              bucket: 'mybucket',
	      path: `desktop/macos`,
              region: 'us-east-1',
        },
},
dmg: {
	...
},

// Windows platform:
win: {
	icon: BETA ? 'icon-beta.icns' : 'icon.icns',
},
nsis: {
	publish: {
            provider: 's3',
	    bucket: 'mybucket',
 	    path: `desktop/windows`,
	    region: 'us-east-1',
        },
},

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
brennomarquescommented, May 24, 2020

Hello, I have this problem, I do everything in the documentation, now I did it like that, but even so it keeps saying that there was no finder “app-update.yml” when the Build was generated, I don’t know what else to do. I’m using Linux x64

[2020-05-23 18:08:12.893] [info] Checking for update
[2020-05-23 18:08:12.956] [error] Error: Error: ENOENT: no such file or directory, open '/tmp/.mount_assistZQfY4W/resources/app-update.yml'
[2020-05-23 19:58:50.565] [info] Checking for update
[2020-05-23 19:58:50.612] [error] Error: Error: ENOENT: no such file or directory, open '/tmp/.mount_assistzhNIYM/resources/app-update.yml'
[2020-05-23 21:57:14.388] [info] Checking for update
[2020-05-23 21:57:14.440] [error] Error: Error: ENOENT: no such file or directory, open '/tmp/.mount_assistfTHclG/resources/app-update.yml'
[2020-05-24 00:15:33.335] [info] Checking for update
[2020-05-24 00:15:33.379] [error] Error: Error: ENOENT: no such file or directory, open '/tmp/.mount_assistlyhvqs/resources/app-update.yml'
[2020-05-24 09:33:38.438] [info] Checking for update
[2020-05-24 09:33:38.486] [error] Error: Error: ENOENT: no such file or directory, open '/tmp/.mount_assistTtLBna/resources/app-update.yml'
1reaction
alxmironcommented, Mar 7, 2018

The issue was fixed by adding publish property to win config. But publish is not available in win according the docs. Even though, providing publish to nsis must be enough for successful creation of app-update.yml for nsis target

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with app update yml files is not generated in electron?
If you have a problem with missing app-update.yml and dev-app-update.yml then paste the following code into index.js:
Read more >
Auto Update - electron-builder
electron-builder automatically creates app-update.yml file for you on build in the resources (this file is internal, you don't need to be aware of...
Read more >
Problem with app update yml files is not generated in electron?
I have a problem with the auto-update of electron app, After I finished all the app parts and I am trying to push...
Read more >
Appendix G: Building NSIS - SourceForge
The build system can build the entire NSIS package so you no longer need to build it project by project. It allows building...
Read more >
electron-publish | Yarn - Package Manager
${arch} missing from app-update.yml (77558e6), closes #1389; Builds fail on building .deb using packaged fpm on Travis (037fba6), closes #1402 ...
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