Thread overview
tshare/1.0 a fast way to share file using transfer.sh
Oct 04, 2023
Andrea Fontana
Oct 07, 2023
Andrea Fontana
Oct 11, 2023
kinke
Oct 11, 2023
Imperatorn
Oct 12, 2023
Andrea Fontana
October 04, 2023

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

October 07, 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

October 11, 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).

October 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:

>

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).

Someone should add this to the wiki

October 12, 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:

>

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).

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,
Andrea