electron-differential-updater icon indicating copy to clipboard operation
electron-differential-updater copied to clipboard

Is this project still live?

Open dj-nuo opened this issue 2 years ago • 3 comments

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 avatar May 18 '23 20:05 dj-nuo

@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.

harshitsilly avatar Jun 02 '23 09:06 harshitsilly

Unfortunately, I can't make it work(

Here is what I do:

  1. My package.json doesn't have any build related info
  2. 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((
  3. 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",
  1. 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 avatar Aug 19 '23 09:08 dj-nuo

@dj-nuo if support needed we can connect on zoom or hangout

harshitsilly avatar Dec 13 '23 20:12 harshitsilly