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',
},
},
I ran into this issue too, but from my understanding should only happen in Development mode (which doesn't really support auto-update anyways). What's the issue?
In dev mode file is not created and the reasons are clear. It just looks for dev-app-update.yml file. In prod app-update.yml file must be created automatically in resources folder and I don't see such for windows builds
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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have the same problem
[2019-11-29 10:02:39.787] [info] Checking for update
[2019-11-29 10:02:39.787] [info] 「main-index」- checking-for-update
[2019-11-29 10:02:39.900] [info] Found version 1.3.8 (url: qianshou_1.3.8.exe)
[2019-11-29 10:02:39.901] [error] 「main-index」- update-available
[2019-11-29 10:02:39.901] [info] Downloading update from qianshou_1.3.8.exe
[2019-11-29 10:02:39.902] [error] Error: Error: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Local\Programs\qianshou\resourcesapp-update.yml'
[2019-11-29 10:02:39.902] [error] 「main-index」- err --> UnhandledRejection Error: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Local\Programs\qianshou\resourcesapp-update.yml'
[2019-11-29 10:02:39.903] [error] Error: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Local\Programs\qianshou\resourcesapp-update.yml'
[2019-11-29 10:02:48.334] [info] Checking for update
[2019-11-29 10:02:48.335] [info] 「main-index」- checking-for-update
[2019-11-29 10:02:48.356] [info] Found version 1.3.8 (url: qianshou_1.3.8.exe)
[2019-11-29 10:02:48.357] [error] 「main-index」- update-available
[2019-11-29 10:02:48.357] [info] Downloading update from qianshou_1.3.8.exe
[2019-11-29 10:02:48.357] [error] Error: Error: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Local\Programs\qianshou\resourcesapp-update.yml'
[2019-11-29 10:02:48.358] [error] 「main-index」- err --> UnhandledRejection UnhandledRejection Error: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Local\Programs\qianshou\resourcesapp-update.yml'
[2019-11-29 10:02:48.358] [error] Error: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Local\Programs\qianshou\resourcesapp-update.yml'
[2019-11-29 10:02:52.810] [info] Checking for update
[2019-11-29 10:02:52.813] [info] 「main-index」- checking-for-update
[2019-11-29 10:02:53.904] [info] Found version 1.3.8 (url: qianshou_1.3.8.exe)
[2019-11-29 10:02:53.904] [error] 「main-index」- update-available
[2019-11-29 10:02:53.905] [info] Downloading update from qianshou_1.3.8.exe
[2019-11-29 10:02:54.060] [info] Update has already been downloaded to C:\Users\admin\AppData\Local\qianshou-updater\pending\qianshou_1.3.8.exe).
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'