@weezy20/zv 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -108,23 +108,39 @@ From now on, use the `zv` installed in `ZV_DIR/bin`.
108
108
 
109
109
  ---
110
110
 
111
- > **Note:** Run `zv setup` after installation to self-install `zv` to `ZV_DIR/bin` (default: `$HOME/.zv/bin` on Unix, `%USERPROFILE%\.zv\bin` on Windows).
111
+ > **Note:** The quick install scripts (shell/PowerShell), Homebrew, and npm all install `zv` directly to `ZV_DIR/bin` (default: `$HOME/.zv/bin` on Unix, `%USERPROFILE%\.zv\bin` on Windows) and configure your PATH automatically. You're ready to go! If you installed via cargo, see the instructions above for running `zv setup` or `zv sync`.
112
112
 
113
113
  ## Updating `zv`
114
114
 
115
- If you have the repo cloned or are using cargo-installed binary:
115
+ **Simple update (Recommended):**
116
116
  ```sh
117
- # Builds new version and simultaneously runs setup to update the binary in ZV_DIR/bin
118
- cargo run --release -- setup
119
- # Or you can also use sync
120
- cargo run --release -- sync # Recommended
117
+ zv update
121
118
  ```
122
- If you have the quick install script you should have a `zv-update` command available:
119
+
120
+ This command checks for new releases on GitHub and updates `zv` in place. It works whether you're running from `ZV_DIR/bin/zv` or from an external location (like cargo install).
121
+
122
+ **Options:**
123
+ ```sh
124
+ zv update --force # Force reinstall even if already on the latest version
125
+ ```
126
+
127
+
128
+
129
+ <details>
130
+ <summary>Alternative update methods:</summary>
131
+
132
+ If you have the repo cloned or are using a cargo-installed binary:
123
133
  ```sh
124
- zv-update # fetches latest release and puts it in the default location for the method you used above
134
+ # Build new version and update the binary in ZV_DIR/bin
135
+ cargo run --release -- sync
136
+
137
+ # Or if you installed from crates.io, install it and sync
138
+ cargo install zv --force
139
+ zv sync
140
+ # or if you already have ZV_DIR/bin in path
141
+ ~/.cargo/bin/zv sync # $CARGO_HOME/bin/zv sync
125
142
  ```
126
- If you used `zv-update` your `ZV_DIR/bin/zv` might still be on the older version. Just run `zv setup` or `zv sync` with the newer `bin` to update the binary in `ZV_DIR/bin`.
127
- This replaces your existing `ZV_DIR/bin/zv` installation. This is not strictly necessary but recommeneded to keep your `ZV_DIR/bin/zv` binary up to date.
143
+ </details>
128
144
 
129
145
  ## Usage
130
146
 
@@ -170,7 +186,8 @@ zv clean --except <version,*> # Clean up every version except the versi
170
186
  zv rm master # Clean up the `master` branch toolchain.
171
187
  zv rm master --outdated # Clean up any older master versions in the master folder that don't match latest `master`
172
188
  zv setup # Set up shell environment for zv with interactive prompts (use --no-interactive for automation)
173
- zv sync # Resync community mirrors list from [ziglang.org/download/community-mirrors.txt]; also force resync of index to fetch latest nightly builds.
189
+ zv sync # Resync community mirrors list from [ziglang.org/download/community-mirrors.txt]; also force resync of index to fetch latest nightly builds. Replaces `ZV_DIR/bin/zv` if outdated against current invocation.
190
+ zv update # Update zv to the latest release only if present in GH Releases: https://github.com/weezy20/zv/releases
174
191
  zv help # Detailed instructions for zv. Use `--help` for long help or `-h` for short help with a subcommand.
175
192
  ```
176
193
 
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@weezy20/zv",
26
- "version": "0.2.1"
26
+ "version": "0.3.1"
27
27
  },
28
28
  "node_modules/@isaacs/balanced-match": {
29
29
  "engines": {
@@ -896,5 +896,5 @@
896
896
  }
897
897
  },
898
898
  "requires": true,
899
- "version": "0.2.1"
899
+ "version": "0.3.1"
900
900
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/weezy20/zv/releases/download/v0.2.1",
2
+ "artifactDownloadUrl": "https://github.com/weezy20/zv/releases/download/v0.3.1",
3
3
  "author": "Abhishek Shah <abhishekshah3@gmail.com>",
4
4
  "bin": {
5
5
  "zv": "run-zv.js"
@@ -42,11 +42,11 @@
42
42
  },
43
43
  "supportedPlatforms": {
44
44
  "aarch64-apple-darwin": {
45
- "artifactName": "zv-aarch64-apple-darwin.tar.xz",
45
+ "artifactName": "zv-aarch64-apple-darwin.tar.gz",
46
46
  "bins": {
47
47
  "zv": "zv"
48
48
  },
49
- "zipExt": ".tar.xz"
49
+ "zipExt": ".tar.gz"
50
50
  },
51
51
  "aarch64-pc-windows-msvc": {
52
52
  "artifactName": "zv-x86_64-pc-windows-msvc.zip",
@@ -56,18 +56,18 @@
56
56
  "zipExt": ".zip"
57
57
  },
58
58
  "aarch64-unknown-linux-gnu": {
59
- "artifactName": "zv-aarch64-unknown-linux-gnu.tar.xz",
59
+ "artifactName": "zv-aarch64-unknown-linux-gnu.tar.gz",
60
60
  "bins": {
61
61
  "zv": "zv"
62
62
  },
63
- "zipExt": ".tar.xz"
63
+ "zipExt": ".tar.gz"
64
64
  },
65
65
  "x86_64-apple-darwin": {
66
- "artifactName": "zv-x86_64-apple-darwin.tar.xz",
66
+ "artifactName": "zv-x86_64-apple-darwin.tar.gz",
67
67
  "bins": {
68
68
  "zv": "zv"
69
69
  },
70
- "zipExt": ".tar.xz"
70
+ "zipExt": ".tar.gz"
71
71
  },
72
72
  "x86_64-pc-windows-gnu": {
73
73
  "artifactName": "zv-x86_64-pc-windows-msvc.zip",
@@ -84,14 +84,28 @@
84
84
  "zipExt": ".zip"
85
85
  },
86
86
  "x86_64-unknown-linux-gnu": {
87
- "artifactName": "zv-x86_64-unknown-linux-gnu.tar.xz",
87
+ "artifactName": "zv-x86_64-unknown-linux-gnu.tar.gz",
88
88
  "bins": {
89
89
  "zv": "zv"
90
90
  },
91
- "zipExt": ".tar.xz"
91
+ "zipExt": ".tar.gz"
92
+ },
93
+ "x86_64-unknown-linux-musl-dynamic": {
94
+ "artifactName": "zv-x86_64-unknown-linux-musl.tar.gz",
95
+ "bins": {
96
+ "zv": "zv"
97
+ },
98
+ "zipExt": ".tar.gz"
99
+ },
100
+ "x86_64-unknown-linux-musl-static": {
101
+ "artifactName": "zv-x86_64-unknown-linux-musl.tar.gz",
102
+ "bins": {
103
+ "zv": "zv"
104
+ },
105
+ "zipExt": ".tar.gz"
92
106
  }
93
107
  },
94
- "version": "0.2.1",
108
+ "version": "0.3.1",
95
109
  "volta": {
96
110
  "node": "18.14.1",
97
111
  "npm": "9.5.0"