You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/getting-started/windows.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,31 +11,41 @@ This page has information on how to install and use TinyGo on Windows 10.
11
11
12
12
We now have a native install for Windows 10.
13
13
14
-
VERY IMPORTANT NOTE: You cannot yet create Windows binary programs using TinyGo, only MCU and WASM targets.
14
+
> **VERY IMPORTANT NOTE:**
15
+
> You cannot yet create Windows binary programs using TinyGo, only MCU and WASM targets.
16
+
17
+
TinyGo requires Go v1.14+ to be already installed on your machine.
15
18
16
19
### Quick Install via Scoop
17
20
18
21
You can use [Scoop](https://scoop.sh/) to install TinyGo and dependencies.
19
22
20
-
You must have Go v1.14+ already installed on your machine in order to install TinyGo. If you haven't installed Go already, you can do so with the following commands:
23
+
If you haven't installed Go already, you can do so with the following command:
21
24
22
25
```shell
23
-
scoop install go
26
+
>scoop install go
24
27
```
25
28
26
-
Then install TinyGo using the following command - this will also update the PATH variable to point to the installed package:
29
+
Followed by TinyGo itself:
27
30
28
31
```shell
29
-
scoop install tinygo
32
+
>scoop install tinygo
30
33
```
31
34
32
-
You can test that the installation is working properly by running this code which should display the version number:
35
+
Your `$PATH` environment variable will be updated via the scoop package. By default a shim is created in `~/scoop/shims/tinygo`.
36
+
37
+
You can test that the installation was successful by running the `version` command which should display the version number:
33
38
34
39
```shell
35
-
tinygo version
40
+
>tinygo version
36
41
tinygo version 0.14.1 windows/amd64 (using go version go1.15 and LLVM version 10.0.1)
37
42
```
38
43
44
+
Upgrading to the latest TinyGo version can be done via scoop with:
45
+
46
+
```shell
47
+
> scoop update tinygo
48
+
```
39
49
40
50
### Manual Install
41
51
@@ -58,13 +68,13 @@ tinygo version 0.14.1 windows/amd64 (using go version go1.15 and LLVM version 10
58
68
- You will need to add `C:\tinygo\bin` to your PATH.
59
69
60
70
```shell
61
-
set PATH=%PATH%;"C:\tinygo\bin";
71
+
>set PATH=%PATH%;"C:\tinygo\bin";
62
72
```
63
73
64
74
- Now you should be able to run the TinyGo command:
65
75
66
76
```
67
-
tinygo version
77
+
>tinygo version
68
78
tinygo version 0.14.1 windows/amd64 (using go version go1.15 and LLVM version 10.0.1)
0 commit comments