mastodon-twitter-sync
mastodon-twitter-sync copied to clipboard
Provide a binary with each release
Would it be possible to provide a binary (Linux amd64) with each release?
I'm not familiar with Rust at all and would like to package it up in a container rather than having to install all the Rust dependencies.
Unfortunately not that easily because there is a dynamic link to openssl by some dependency last time I checked. Then the binary did not work on different Linux/OpenSSL versions.
But we could setup an Ubuntu 20.04 build job to attach to releases, better than nothing?
Yeah that would work. I can look at including it in a docket container. Is there a flag to pass the path to the config file?
On Thu, 4 Mar 2021, 17:33 Klaus Purer, [email protected] wrote:
Unfortunately not that easily because there is a dynamic link to openssl by some dependency last time I checked. Then the binary did not work on different Linux/OpenSSL versions.
But we could setup an Ubuntu 20.04 build job to attach to releases, better than nothing?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/klausi/mastodon-twitter-sync/issues/38#issuecomment-790794870, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB3DODONYQJGAPQVMYTKHDTB7AAFANCNFSM4YTVJYFA .
There is not (yet?) - config file must be in the current working directory.
A lot of things improved:
- We have a docker container image now, check the README
- You can specify the path to the config file with
--config
- We eliminated the dependency to OpenSSL, so it should be possible to provide precompiled binaries with releases now. Will keep this issue open to work on that, should not be hard with https://github.com/taiki-e/upload-rust-binary-action
And I'm done! Binaries are now available on the release page.
They don't work on all platforms, for example the Linux binary only works on newer distributions. On an old Debian 9 I get the error
/home/klausi/mastodon-twitter-sync: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /home/klausi/mastodon-twitter-sync)
But I think we don't care, people can always compile themselves on older systems.
Please test and let me know if you see any problems!