-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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' ); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
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 ) { |
There was a problem hiding this comment.
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.
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).