Good place to move if you like tomatoes apparently
G-Ray joined the channel
G-Ray
In this electron blog post https://electron.atom.io/blog/2017/02/21/dat, Dat team says "To address this we recently switched to a strategy where we bundle all compiled binary versions of all platforms inside the npm tarball.""
For which module Dat-desktop uses this strategy ?
ogd
G-Ray: using prebuild as the packager, we use it on rabin and sodium-native
G-Ray
Thanks ogd, but how can prebuild install the right electron or node package ?
ogd
G-Ray: good question, mafintosh or juliangruber may be able to answer that
G-Ray
yeah because I'm unable to package a native node modules for electron
mafintosh
G-Ray: it uses prebuildify and node-gyp-build to do that
G-Ray: basically, you prebuild for every platform. put all prebuilds inside the npm tar (builds are usually small) and pick the right one on runtime
G-Ray
Thanks mafintosh: do you have an example module ?
mafintosh
G-Ray: see utp-native and sodium-native
both have a prebuild npm script that builds for the current platform
G-Ray: i run that on osx,win,linux and then download all builds locally and run npm publish
G-Ray: if you npm install utp-native and cd into the node_modules/utp-native/prebuilds folder you'll see the builds I included when I published
G-Ray
Great, I will look into that !
G-Ray has quit
andrenarchy joined the channel
G-Ray joined the channel
shibacomputer joined the channel
shibacomputer has quit
travisfw joined the channel
G-Ray has quit
ogd
random idea, if you dat diff two dats it should compare filenames and hashes of files and give you stats on how similar the two datasets are
hyperirc-4e397d9 has quit
G-Ray joined the channel
G-Ray has quit
jhand
ya that'd be cool. can we just compare the merkle trees if the filenames change?