Open tpetry opened 2 years ago
When changing the target mode to only build a dmg release, electron-updater failed because it's searching for a not existing zip file. Which seems to be a known bug for some time.
That's not a bug. If you want to use auto-update on mac, you need to build a zip. Differential dmg updates were never implemented/finished as a feature
searches for a not-existing app-update.yml
Can you confirm that you're running it with publish args? (electron-builder --publish always
)
Sure, I am executing electron-builder with the option to always publish:
electron-builder build --config .electron-builder.config.js --config.asar=false \
--macos --x64 --arm64 --publish always
If I don't use --publish always
, only the .app
files are built, no latest-mac.yml
, .dmg
or .zip
.
Is the app-update.yml
really required for the auto-updater together with the latest-mac.yml
? Sounds strange needing two different files. Therefore, I expected electron-updater
to be wrong and not electron-publish
.
Also, if the .app
file is the one that contains the app-update.yml
anyways in Contents/Resources/app-update.yml
, then why is it not generated when using the --dir
option alone?
When creating an auto-updateable macOS application with the generic provider the electron-updater process always searches for a not-existing app-update.yml and is therefore crashing.
.electron-builder.config.js:
Electron-Code:
Generated File-Listing:
When changing the target mode to only build a
dmg
release, electron-updater failed because it's searching for a not existing zip file. Which seems to be a known bug for some time.