electron-differential-updater
electron-differential-updater copied to clipboard
Is this project still live?
Describe the bug
For example, I get this error
Cannot read properties of undefined (reading 'productName')
Also, it took me a while to find where to put generateZipandBlockmap() - turns out it needs to be added to the file & then included in build config like this (at least that's my guess, since build fails to the above error): "afterPack": "build/customElectronUpdater.js"
Is it worth still using this project? Or is it abandoned?
@dj-nuo have u checked this https://imjselectron.github.io/electron-differential-updater/#/?id=mac-differential-updatezip-supported
generateZipandBlockmap()
has to be called after your build command
Yes it works, This project is in maintenance mode for long. But it is still used in many existing projects.
Unfortunately, I can't make it work(
Here is what I do:
- My
package.jsondoesn't have any build related info - My build info is broken down into 2 systems: Windows & Mac (Universal) -
build-win.config.json&build-mac.config.json. Yes, I need two files, because some fields in the config can't be platform specific(( - In both my Mac & Windows build configs (from step 2) I have this:
"appId": "com.my-app.app",
"productName": "My Cool App",
"directories": {
"output": "dist",
},
"afterPack": "generateZipBlockMap.js",
- Inside
generateZipBlockMap.js, that is located in root dir I have this:
// run as afterPack will generate zip and blockmap to enable differential update.
const {
generateZipandBlockmap
} = require("@imjs/electron-differential-updater");
exports.default = async function (context) {
generateZipandBlockmap('build-win.config.json'); // or mac config
}
After all of this I'm still getting Cannot read properties of undefined (reading 'productName')
@harshitsilly Can you hint on what I do wrong? 🙂
@dj-nuo if support needed we can connect on zoom or hangout