digitalmars.D.announce - tshare/1.0 a fast way to share file using transfer.sh
- Andrea Fontana (10/10) Oct 04 2023 I've just released a simple tool for sharing files (similar to
- Andrea Fontana (10/12) Oct 07 2023 News:
- kinke (4/7) Oct 11 2023 Yes; IIRC, you need to link `curl_a.lib` *and* add `curl.exp` (as
- Imperatorn (2/11) Oct 11 2023 Someone should add this to the wiki
- Andrea Fontana (11/20) Oct 12 2023 You're right!
I've just released a simple tool for sharing files (similar to WeTransfer) directly from the terminal. Usage is incredibly straightforward: Run ```dub build tshare``` to build the tool. Use ```tshare /your/file``` to share your file, which will generate a public link. For additional options, you can explore by running tshare -h. On GitHub: https://github.com/trikko/tshare Best regards, Andrea
Oct 04 2023
On Wednesday, 4 October 2023 at 23:02:39 UTC, Andrea Fontana wrote:I've just released a simple tool for sharing files (similar to WeTransfer) directly from the terminal.News: - Added support for encryption (if gpg is available) - Added binaries built by github - Improved UI Question: - Is there a way to compile curl statically with ldc for windows? If I try (using -static), it throws a runtime error. Andrea
Oct 07 2023
On Saturday, 7 October 2023 at 22:40:58 UTC, Andrea Fontana wrote:Question: - Is there a way to compile curl statically with ldc for windows? If I try (using -static), it throws a runtime error.Yes; IIRC, you need to link `curl_a.lib` *and* add `curl.exp` (as Phobos tries to find the exported functions in the .exe itself) to the linker cmdline too (both files in the LDC lib dir).
Oct 11 2023
On Wednesday, 11 October 2023 at 14:30:50 UTC, kinke wrote:On Saturday, 7 October 2023 at 22:40:58 UTC, Andrea Fontana wrote:Someone should add this to the wikiQuestion: - Is there a way to compile curl statically with ldc for windows? If I try (using -static), it throws a runtime error.Yes; IIRC, you need to link `curl_a.lib` *and* add `curl.exp` (as Phobos tries to find the exported functions in the .exe itself) to the linker cmdline too (both files in the LDC lib dir).
Oct 11 2023
On Wednesday, 11 October 2023 at 14:30:50 UTC, kinke wrote:On Saturday, 7 October 2023 at 22:40:58 UTC, Andrea Fontana wrote:You're right! On dub this works: ``` dflags "-link-defaultlib-shared=false" platform="ldc" dflags "-static" platform="windows" lflags "curl_a.lib" "crypt32.lib" "wldap32.lib" "curl.exp" platform="windows" ``` Thank you, AndreaQuestion: - Is there a way to compile curl statically with ldc for windows? If I try (using -static), it throws a runtime error.Yes; IIRC, you need to link `curl_a.lib` *and* add `curl.exp` (as Phobos tries to find the exported functions in the .exe itself) to the linker cmdline too (both files in the LDC lib dir).
Oct 12 2023