Homebrew tap for simonvar/ktfmt — the Klimat style fork of facebook/ktfmt.
brew install simonvar/tap/ktfmtor
brew tap simonvar/tap
brew install ktfmtThen:
ktfmt --klimat-style path/to/File.kt- Apple Silicon macOS and Linux (x86_64 / aarch64) — the GraalVM native binary (no JVM required, fast startup).
- Intel macOS — the fat jar run via
openjdk(installed automatically), as no nativedarwin-x86_64build is published.
Homebrew installs formulae without the macOS quarantine attribute, so there is no Gatekeeper "unidentified developer" prompt. The native binary is ad-hoc codesigned in CI, which is all Apple Silicon requires to execute it.
Formula/ktfmt.rb is bumped automatically: publishing a release in
simonvar/ktfmt sends a repository_dispatch that runs
.github/workflows/bump.yml, which reruns
scripts/bump.py <tag> to rewrite the version and sha256 digests and pushes
the change here.
To bump manually, run the Bump ktfmt formula workflow with a tag, or locally:
python3 scripts/bump.py v0.65-klimat.3