Release 1.3.3
install.sh now installs the newest published tag by default instead of tracking the master branch, so 'curl ... | sh' installs a real release and reports its version. The tag is resolved from the Gitea tags API, falling back to master if the lookup fails. MOVE_VERSION still pins an explicit ref.
This commit is contained in:
@@ -23,8 +23,11 @@ cursor leaves the position the script just commanded.
|
||||
curl -fsSL https://gitea.cahlen.com/nokeo08/Move/raw/branch/master/scripts/install.sh | sh
|
||||
```
|
||||
|
||||
This fetches the latest `master` from Gitea, runs `bun install --production`
|
||||
under the install dir, and drops a `move` wrapper on your bin dir.
|
||||
This installs the latest tagged release from Gitea (the installer resolves
|
||||
it automatically), runs `bun install --production` under the install dir,
|
||||
and drops a `move` wrapper on your bin dir. If the latest tag can't be
|
||||
determined — offline, or the API is unreachable — it falls back to the
|
||||
`master` branch. Pin an exact ref with `MOVE_VERSION` (see below).
|
||||
|
||||
The installer respects the XDG Base Directory Specification:
|
||||
|
||||
@@ -40,7 +43,7 @@ one and it can reach a terminal, it tells you what's there and asks:
|
||||
|
||||
```
|
||||
==> Found an existing move install (v1.2.0) at /home/you/.local/share/move
|
||||
Replace it with master? [Y/n]
|
||||
Replace it with v1.3.2? [Y/n]
|
||||
```
|
||||
|
||||
If a config file already exists, it asks separately whether to overwrite
|
||||
@@ -59,7 +62,7 @@ Env vars (all optional):
|
||||
|
||||
| Var | Default | Purpose |
|
||||
| --- | ------- | ------- |
|
||||
| `MOVE_VERSION` | `master` | Branch or tag to install. Pin with e.g. `v1.0.0`. |
|
||||
| `MOVE_VERSION` | latest tag | Branch or tag to install; auto-resolves to the newest tag, falling back to `master`. Pin with e.g. `v1.0.0`. |
|
||||
| `MOVE_FORCE` | unset | Set to `1` to skip every prompt and reinstall unconditionally. Never touches your config. |
|
||||
| `MOVE_RESEED_CONFIG` | unset | Set to `1` to overwrite your config with the shipped defaults without asking. The old file is kept as `config.json.bak`. |
|
||||
| `XDG_DATA_HOME` | `$HOME/.local/share` | Where the source tree is installed (under `move/`). |
|
||||
|
||||
Reference in New Issue
Block a user