|
1 | | -# Flutter Version Manager [][2] |
| 1 | +# Flutter Version Manager [][2] |
2 | 2 |
|
3 | 3 | Inspired by [nvm](https://github.com/nvm-sh/nvm) |
4 | 4 |
|
@@ -67,10 +67,10 @@ Simple as that! |
67 | 67 |
|
68 | 68 | To **install** or **update** fvm, you should run the [install script][1]. To do that, you may either download and run the script manually, or use the following cURL or Wget command: |
69 | 69 | ```sh |
70 | | -curl -o- https://raw.githubusercontent.com/fvm-sh/fvm/v0.3.0/install.sh | bash |
| 70 | +curl -o- https://raw.githubusercontent.com/fvm-sh/fvm/v0.4.0/install.sh | bash |
71 | 71 | ``` |
72 | 72 | ```sh |
73 | | -wget -qO- https://raw.githubusercontent.com/fvm-sh/fvm/v0.3.0/install.sh | bash |
| 73 | +wget -qO- https://raw.githubusercontent.com/fvm-sh/fvm/v0.4.0/install.sh | bash |
74 | 74 | ``` |
75 | 75 |
|
76 | 76 | Running either of the above commands downloads a script and runs it. The script clones the fvm repository to `~/.fvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). |
@@ -158,7 +158,7 @@ If you have `git` installed (requires git v1.7.10+): |
158 | 158 |
|
159 | 159 | 1. clone this repo in the root of your user profile |
160 | 160 | - `cd ~/` from anywhere then `git clone https://github.com/fvm-sh/fvm.git .fvm` |
161 | | -1. `cd ~/.fvm` and check out the latest version with `git checkout v0.3.0` |
| 161 | +1. `cd ~/.fvm` and check out the latest version with `git checkout v0.4.0` |
162 | 162 | 1. activate `fvm` by sourcing it from your shell: `. ./fvm.sh` |
163 | 163 |
|
164 | 164 | Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login: |
@@ -272,14 +272,14 @@ IDEs usually need flutter sdk path to provide services, you can create a soft li |
272 | 272 | ``` sh |
273 | 273 | fvm link 3.3.8 |
274 | 274 | ``` |
275 | | -This will link installed 3.3.8 version path to `.flutter/sdk` under current directory. |
| 275 | +This will link installed 3.3.8 version path to `.fvm/flutter` under current directory. |
276 | 276 |
|
277 | 277 | Then you can config IDEs (like VS Code) with this soft link: |
278 | 278 |
|
279 | 279 | .vscode/settings.json |
280 | 280 | ``` json |
281 | 281 | { |
282 | | - "dart.flutterSdkPath": ".flutter/sdk", |
| 282 | + "dart.flutterSdkPath": ".fvm/flutter", |
283 | 283 | } |
284 | 284 | ``` |
285 | 285 | ## Environment variables |
@@ -368,8 +368,8 @@ You have to make sure that the user directory name in `$HOME` and the user direc |
368 | 368 |
|
369 | 369 | To change the user directory and/or account name follow the instructions [here](https://support.apple.com/en-us/HT201548) |
370 | 370 |
|
371 | | -[1]: https://github.com/fvm-sh/fvm/blob/v0.3.0/install.sh |
372 | | -[2]: https://github.com/fvm-sh/fvm/releases/tag/v0.3.0 |
| 371 | +[1]: https://github.com/fvm-sh/fvm/blob/v0.4.0/install.sh |
| 372 | +[2]: https://github.com/fvm-sh/fvm/releases/tag/v0.4.0 |
373 | 373 |
|
374 | 374 | **Homebrew makes zsh directories unsecure** |
375 | 375 |
|
|
0 commit comments