diff --git a/README.md b/README.md index dbde59c..400a420 100644 --- a/README.md +++ b/README.md @@ -57,19 +57,19 @@ This will install Clyx as a T-DeckARD applet. ### Reference Go implementation installation -To install the Go-based Clyx implementation directly from Git, run: +To install the Go-based Clyx implementation and its tools (including `clyxc`) directly from Git, run: ```sh -go install codeberg.org/luxferre/clyx@latest +go install codeberg.org/luxferre/clyx/...@latest ``` -For maximum performance, you can pass optimization flags to build a stripped binary without debug symbols, bounds checks, or inlining: +For maximum performance, you can pass optimization flags to build stripped binaries without debug symbols, bounds checks, or inlining: ```sh -go install -a -trimpath -gcflags=all="-l -B -e" -ldflags "-s -w" codeberg.org/luxferre/clyx@latest +go install -a -trimpath -gcflags=all="-l -B -e" -ldflags "-s -w" codeberg.org/luxferre/clyx/...@latest ``` -This will install the executable as `clyx` into your `$GOPATH/bin` directory. To upgrade to the latest version at any time, simply run the same command again. +This will install the executables as `clyx` and `clyxc` into your `$GOPATH/bin` directory. To upgrade to the latest versions at any time, simply run the same command again. Alternatively, to compile and build it locally, navigate to the `clyx-go` directory and run: @@ -126,7 +126,11 @@ The Go implementation supports reading an optional ZIP archive appended directly To package your program, you can use the `clyxc` utility. #### Installing `clyxc` -Install the utility directly from Git: +Install the utility directly from Git (this also installs the main `clyx` binary): +```sh +go install codeberg.org/luxferre/clyx/...@latest +``` +Or to install only the compiler utility: ```sh go install codeberg.org/luxferre/clyx/clyxc@latest ``` diff --git a/clyxc/main.go b/clyxc/main.go index f0a5026..b572212 100644 --- a/clyxc/main.go +++ b/clyxc/main.go @@ -1,5 +1,9 @@ +// Clyx compiler/bundler utility, Go implementation +// Created by Luxferre in 2026, released into the public domain + package main + import ( "archive/zip" "bytes"