-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Darwin builds (server/plugin) #24
Comments
+1 |
The options for supporting macOS are: (1) finding a trusted maintainer to help build and publish the macOS releases, (2) getting myself a macOS, or (3) trusting some cloud provider to build it remotely. I wouldn't feel comfortable trusting a cloud provider for this, so that leaves us with finding a trusted maintainer, or someone donating to sponsor a macOS that I could use for that (which would also enable me to make iOS releases for Spark 😁) |
You can also setup the bwt electrum server using docker instead of using the plugin. This is somewhat more complicated, but not terribly so. Basically |
@shesek I was able to successfully cross-compile for macOS in Docker using https://github.com/joseluisq/rust-linux-darwin-builder |
@leshik Nice, this makes things much easier! I was under the impression that you need a mac for this. Is I'm a bit wary about introducing third party docker images into the build process, but its nothing that some auditing and replicating the dockerfile into this repo couldn't solve. |
@shesek Unfortunately I don't have answers as I stumbled upon Before I found this darwin builder Docker image, I was able to do all the steps manually from the fresh One possibility is to fetch the XCode xip installer from Apple, then unpack it and repack SDK as described in Another option is to fetch pre-packaged SDK from somewhere, but this leads to the same issue of trusting somebody. |
@shesek I develop mostly on a mac so I'm happy to help with releases. I believe we share a few connections (Tel Aviv) if you want to explore this option offline. |
@pox Sounds good, happy to explore this! Being able to do an IRL exchange of release pubkeys is also a big plus. Are you coming to the bitcoin embassy from time to time? Perhaps we could meet there? I'm reachable at [email protected] or on freenode (same nickname). |
@shesek sent an email. |
I think I managed to cross-compile for macOS (via oxscross), but don't have a way to actually test this. Would anyone like to be a guinea pig? 🐹 |
Right here!
👋
|
Thanks @pox! The macOS releases are available here: https://github.com/shesek/bwt/releases/tag/osx-rc I recently also made the builds reproducible. If you'd like, you can verify that checksums against the builds made on Travis CI (which pulls the code from GitHub). Scroll to the very end of the build log and you'll see the checksums following |
Doesn't seem to quite work. When I try executing the
😞 @shesek I see you're using Travis. Have you tried executing the binary as part of the build? Could probably be used as some basic smoke test. |
Ugh. I've been running into similar errors in the complication step, I thought I solved them with some compiler flags but it looks like I just pushed it away to the runtime. :( I'm using Travis, but it's also cross-compiling from Linux environment (to match the binaries produced by my local environment), so I can't run the binary as part of the build. I can, however, create a separate macOS Travis environment specifically for that purpose -- which is an excellent idea. Thanks for bringing that up! I'll comment here when I make progress. Cheers. |
Ok, I think I got it working for realz this time. :) Care to give it a try @pox? (the binaries are available on that same |
@shesek binary seems to work. Is there any sort of acceptance test you'd like me to perform? Or are you just happy with knowing it's running (spitting out usage, for example)?
|
@pox Nice, thanks! Just seeing that its running without crashing down is probably good enough, but it would be cool if you have an handy bitcoin node and could give this a more throughout test. Basically, if you have bitcoind running with the default directory and ports, After it finishes rescanning, you can try connecting to the electrum server on port 50001 (no ssl, so |
So far so good, it started a rescan. Will update. btw, definitely a good idea to have a CLI option to specify rescan block height. |
@shesek I got Electrum to connect to it, but it didn't find any transactions. Also, I only tested the standalone binary, not the plugin. Is the plugin also available on osx, and if so would you like me to test it? I would need instructions how. |
This is possible via (I know you already figured that out, just mentioning it for others.) |
Implemented in bc9162a. |
Released in v0.1.5! https://github.com/shesek/bwt/releases/tag/v0.1.5 |
Would be nice to have officially built bwt electrum plugin for MacOSX, without having to download rust toolchain, especially for normies. Thanks
The text was updated successfully, but these errors were encountered: