DeskGap icon indicating copy to clipboard operation
DeskGap copied to clipboard

How to upgrade version of Node

Open vpress-admin opened this issue 4 years ago • 1 comments

I understand that this project is no longer maintained and is pretty much dead. But the Electron like APIs and vastly reduced bundle size and support for vibrancy are a must for me. Only thing holding me back is the Node 12.x. I've built the project but can't work out how to upgrade Node. Anyone able to help on this..?

vpress-admin avatar Oct 12 '21 12:10 vpress-admin

Basically, you need to change the node version cmake file here https://github.com/patr0nus/DeskGap/blob/master/node/CMakeLists.txt#L48.

But that won't work, as current master is using nod at https://github.com/patr0nus/DeskGap/blob/master/node/CMakeLists.txt#L49, the nod and DeskGap is not up-to-date. While you set the version to like node 17, it will failed as libnode release format changed.

Basically, the DeskGap depends on nod to bootstrap nodejs, and nod is using libnode as static library to link node. Though, you only need to fork libnode to make it work (or you can use my fork).

For detail, see my fork of libnode, and my fork of DeskGap. The recent commits should explain how this work. You need to focus on the cmake file changes in node/CMakeLists.txt and bootstraping code in node/src/main.cc.

ci010 avatar Feb 22 '22 09:02 ci010