-
Notifications
You must be signed in to change notification settings - Fork 33
chore: Allow fetching cross-platform parity-ethereum #501
Conversation
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.
lgtm
if (stderr) throw new Error(stderr); | ||
return stdout.match(/v\d+\.\d+\.\d+/)[0]; | ||
}) | ||
.catch(error => console.warn(error.message)); |
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.
maybe in the future add a note to explain that we're catching the error so that the process still exits with 0 when fetching&packaging the windows binary on linux (ci) (then, the binary version cannot be checked)
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.
+1 also remove the annoying "command failed" messages
@@ -48,6 +57,11 @@ if (foundPath) { | |||
// Bundled Parity was found, we check if the version matches the minimum requirements | |||
getBinaryVersion(foundPath) | |||
.then(version => { | |||
if (!version) { |
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.
same, in the future it can use some more commenting, otherwise the underlying logic isn't very clear
On gitlab we build the Windows binary on Linux: we need to fetch the windows parity-ethereum from linux.
yarn fetch-parity --win
or--mac
or--linux