Skip to content

add appveyor, find libnode for any nodejs version#6

Open
develar wants to merge 2 commits intomimecorg:masterfrom
develar:master
Open

add appveyor, find libnode for any nodejs version#6
develar wants to merge 2 commits intomimecorg:masterfrom
develar:master

Conversation

@develar
Copy link

@develar develar commented Nov 15, 2018

As part of electron-builder support for Proton Native and libui frameworks, I have forked this repo to build for latest node LTS.

Because of security reasons, it is bad to build locally, so, appveyor is added (~30 minutes to build).

const nodeDir = path.join( __dirname, '../deps/node' );
const libuiDir = path.join( __dirname, '../deps/libui' );

const nodeSrc = path.join( nodeDir, process.platform == 'darwin' ? 'out/Release/libnode.57.dylib' : 'out/Release/lib.target/libnode.so.57' );
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On linux here now 64 for NodeJS, not 57. To avoid such dependency, I added reliable way to find libnode file. Just scan dir and find by mask.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the getNodeModuleVersion() function from utils.js, it returns the node version. It's used in build-node.js but I forgot to replace it here.

Copy link
Author

@develar develar Nov 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@develar
Copy link
Author

develar commented Nov 17, 2018

Please note that currently you can build LaunchUI on macOS because of andlabs/libui#422 I am not going to fix it because I don't need LaunchUI for macOS.

throw result.error;
}

function symlinkIfNotExist( src, dest ) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old check was not enough and doesn't work. Now you can run npm run build:libui several times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants