Shared clipboard process
Go to file
Emil Lerch 874356bd3f
document windows uploader problem
2022-01-07 10:33:52 -08:00
config add external encryption and use of file for curl binary data 2022-01-07 10:32:47 -08:00
src add external encryption and use of file for curl binary data 2022-01-07 10:32:47 -08:00
.gitignore enable uploads 2022-01-05 10:24:14 -08:00
GitRepoStep.zig enable uploads 2022-01-05 10:24:14 -08:00
LICENSE initial commit: https://stackoverflow.com/questions/27378318/c-get-string-from-clipboard-on-linux 2021-10-29 14:09:51 -07:00
README.md document windows uploader problem 2022-01-07 10:33:52 -08:00
build.zig add external encryption and use of file for curl binary data 2022-01-07 10:32:47 -08:00
zfetch_deps.zig enable uploads 2022-01-05 10:24:14 -08:00

README.md

Building

First run should use zig build -Dfetch. This will pull dependencies

Building for Linux

Linux requires libx11 and libxfixes. Specific curl commands are in build.zig

Building for Windows

zig build -Dtarget=x86_64-windows -Dcurl -Dseperate-encryption -Drelease-safe && cp zig-out/bin/*.???

Building for Linux:

zig build

Three executables come out of this:

  • encrypt: Only used in Windows when -Dseperate-encryption is specified. This works around crowdstrike restrictions, but only if the executable is not named "encrypt", so I've rot13'd the name.
  • clipboard-download: Downloads from the clipboard
  • clipboard-upload: Uploads to the clipboard

There is nothing to prevent a download from setting the clipboard and triggering an upload. We'll live with that, at least for now.

Issues to fix

Iguana needs TLS 1.3 support, or support for a ECDSA algorithm Windows uploader creates a traditional dos window