Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add appveyor, find libnode for any nodejs version #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

@@ -28,20 +28,22 @@ function buildLaunchUI() {
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.

@@ -54,3 +55,13 @@ function buildLaunchUI() {
if ( result.error != null )
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