Skip to content

Commit

Permalink
Reconfigure install location for minijinja-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Oct 25, 2024
1 parent 5e03f31 commit d6d65a2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to MiniJinja are documented here.
simple cases. #606
- `minijinja-cli` now has a `--syntax-help` argument that prints out the
primer on the syntax. #607
- `minijinja-cli` now installs to `~/.local/bin` by default. #608
- Made the c-bindings compatible with wasm compilation. #603
- `String`/`Cow<str>` argument types will no longer implicitly convert
keyword arguments to string form. This was an unintended foot gun. #605
Expand Down
13 changes: 13 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[workspace]
members = ["cargo:."]

# Config for 'cargo dist'
[dist]
cargo-dist-version = "0.23.0"
ci = "github"
installers = ["shell", "powershell"]
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "arm-unknown-linux-musleabihf", "armv7-unknown-linux-gnueabihf", "armv7-unknown-linux-musleabihf", "x86_64-apple-darwin", "powerpc64-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc", "i686-unknown-linux-gnu", "i686-unknown-linux-musl", "i686-pc-windows-msvc"]
pr-run-mode = "plan"
precise-builds = true
install-path = ["$MINIJINJA_CLI_INSTALL_DIR/bin", "~/.local/bin"]
install-updater = false
8 changes: 8 additions & 0 deletions minijinja-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ You can install binaries automatically with the shell installer:
curl -sSfL https://github.com/mitsuhiko/minijinja/releases/latest/download/minijinja-cli-installer.sh | sh
```

This script detects what platform you're on and fetches an appropriate archive from GitHub
then unpacks the binaries and installs them to the first of the following locations:

* `$MINIJINJA_CLI_INSTALL_DIR/bin`
* `~/.local/bin`

To influence where it installs, you can set the `MINIJINJA_CLI_INSTALL_DIR` environment variable.

Or download a binary manually:

- [aarch64-apple-darwin](https://github.com/mitsuhiko/minijinja/releases/latest/download/minijinja-cli-aarch64-apple-darwin.tar.xz) (Apple Silicon macOS)
Expand Down

0 comments on commit d6d65a2

Please sign in to comment.