- package.json
GCC 15+ with glibc 2.42+ treats pthread initializer patterns in Go's
runtime/cgo as errors due to stricter -Werror + brace checking.
Add -Wno-error=missing-braces to CGO_CFLAGS in the build script to
allow builds on modern Linux distros (CachyOS, Fedora 42+, Arch, etc.)
while preserving other warning-as-error checks.
Keep MIME detection independent of --filename override.
The display name should only affect what the recipient sees,
not how the file is handled (image/video/document routing).
When sending files via 'wacli send file', the displayed filename was
derived from the file path using filepath.Base(). This caused issues
when the file was stored in a temporary location with a non-descriptive
name (e.g., '/tmp/abc123' would display as 'abc123').
This commit adds a new --filename flag that allows callers to explicitly
specify the display name for the file, independent of the actual file path.
If --filename is not provided, the behavior falls back to using the
basename of the --file path.
Example usage:
wacli send file --to +1234567890 --file /tmp/abc123 --filename report.pdf
Update README Install / Build section to explicitly state that Homebrew installation and local build are alternative options and clarify that the run command is for local build only.