no such file or directory app-update.yml

See original GitHub issue
  • Version: “electron-updater”: “^1.6.4”, “electron-log”: “^1.3.0”
  • Target: macOS

I use auto-update for installed application

[2017-02-14 18:45:25:0741] [info] App starting...
[2017-02-14 18:45:30:0698] [info] Checking for update
[2017-02-14 18:45:30:0698] [info] Checking for update...
[2017-02-14 18:45:31:0713] [error] Error: Error: ENOENT: no such file or directory, open '/Volumes/Chat/Chat.app/Contents/Resources/app-update.yml'
    at Error (native)
From previous event:
    at /Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:238:27
    at next (<anonymous>)
From previous event:
    at MacUpdater.loadUpdateConfig (/Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:271:11)
    at /Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:147:33
    at next (<anonymous>)
From previous event:
    at MacUpdater.doCheckForUpdates (/Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:225:11)
    at /Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:137:25
    at next (<anonymous>)
    at runCallback (timers.js:574:20)
    at tryOnImmediate (timers.js:554:5)
    at processImmediate [as _immediateCallback] (timers.js:533:5)
From previous event:
    at MacUpdater._checkForUpdates (/Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:181:11)
    at MacUpdater.checkForUpdates (/Volumes/Chat/Chat.app/Contents/Resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:119:35)
    at Timeout._onTimeout (/Volumes/Chat/Chat.app/Contents/Resources/app.asar/main.js:80:15)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)
[2017-02-14 18:45:31:0713] [info] Error in auto-updater.

I use this example https://github.com/iffy/electron-updater-example

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
develarcommented, Feb 14, 2017

Update electron-builder to 13.7.0

3reactions
ajbeavencommented, Mar 16, 2017

Update: Oh, I see that auto updating is not yet supported in dev. Consider this a +1 for #1254


I’m getting the same problem with the following installed:

  • Version: electron: 1.4.15 electron-builder: 14.4.0 electron-updater: 1.9.0

  • Target: windows

I’m building using electron-builder with the following: build --win --x64 --ia32

[16:51:19:0452] [error] Error: Error: ENOENT: no such file or directory, open 'D:\MyApp\node_modules\electron\dist\resources\app-update.yml'
    at Error (native)
From previous event:
    at D:\MyApp\node_modules\electron-updater\src\AppUpdater.ts:246:27
    at next (<anonymous>)
From previous event:
    at NsisUpdater.loadUpdateConfig (D:\MyApp\node_modules\electron-updater\out\AppUpdater.js:290:11)
    at D:\MyApp\node_modules\electron-updater\src\AppUpdater.ts:153:33
    at next (<anonymous>)
From previous event:
    at NsisUpdater.doCheckForUpdates (D:\MyApp\node_modules\electron-updater\out\AppUpdater.js:243:11)
    at D:\MyApp\node_modules\electron-updater\src\AppUpdater.ts:143:25
    at next (<anonymous>)
    at runCallback (timers.js:574:20)
    at tryOnImmediate (timers.js:554:5)
    at processImmediate [as _immediateCallback] (timers.js:533:5)
From previous event:
    at NsisUpdater._checkForUpdates (D:\MyApp\node_modules\electron-updater\out\AppUpdater.js:197:11)
    at NsisUpdater.checkForUpdates (D:\MyApp\node_modules\electron-updater\src\AppUpdater.ts:125:35)
    at App.<anonymous> (D:\MyApp\src\main.js:105:21)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

I’m using the two package.json structure like so:

development package.json

{
  "name": "my.app",
  "productName": "My App",
  "version": "0.0.0",
  "description": "My.App",
  "main": "main.js",
  "author": {
    "name": "ajbeaven",
    "url": "https://mysite.nz"
  },
  "license": "MIT",
  "build": {
    "appId": "my.app",
    "artifactName": "${productName}_${version}_${os}_${arch}-setup.${ext}",
    "mac": {
      "category": "public.app-category.business"
    },
    "nsis": {
    },
    "publish": [
      {
        "provider": "generic",
        "url": "http://download.mysite.nz/downloads"
      }
    ]
  },
  "dependencies": {
    "electron-log": "^1.3.0",
    "electron-updater": "^1.9.0"
  },
  "devDependencies": {
    "electron": "^1.4.15",
    "electron-builder": "^14.4.0"
  }
}

app package.json

{
  "name": "my.app",
  "productName": "My App",
  "version": "0.0.4",
  "description": "My.App",
  "main": "main.js",
  "author": {
    "name": "ajbeaven",
    "url": "https://mysite.nz"
  },
  "license": "MIT"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto update doesn't work: app-update.yml is missing #4233
Error : ENOENT: no such file or directory, open 'C:\Users\xyz\AppData\Local\Programs\electron-updater-example\resources\app-update.yml'.
Read more >
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 >
[SOLVED] Unity Hub 3.0.0 extremely slow and cannot activate ...
Error: Error: ENOENT: no such file or directory, open '/opt/unityhub/resources/app-update.yml'. (electron) Security Warning: A WebContents ...
Read more >
Problem with app update yml files is not generated in electron?
Error unknown ENOENT : no such file or directory, open 'C:\{appPath}\{appName}\resources\app-update.yml'. and here is my package.json build ...
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