Skip to content

docs(macos): update links according to HCI guidelines for improved readability #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions content/getting-started/install/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
macOS install guide
---

This page has information on how to install and use TinyGo on macOS. If you wish to build TinyGo from source, for example if you intend to contribute to the project, please take a look [here](../../../docs/guides/build).
This page has information on how to install and use TinyGo on macOS. If you wish to build TinyGo from source, for example if you intend to contribute to the project, please take a look at [Guides: Build from source](../../../docs/guides/build).

You must have Go v1.19+ already installed on your machine in order to install TinyGo.

Expand All @@ -20,17 +20,20 @@ brew install tinygo

### Alternative installation

Download [this](https://github.com/tinygo-org/tinygo/releases/download/v0.30.0/tinygo0.30.0.darwin-amd64.tar.gz) file. Then, run the following commands:

```shell
tar xvzf tinygo-0.30.0.darwin-amd64.tar.gz
export PATH=<extract location>/tinygo/bin:$PATH
```
1. Download [tinygo0.30.0.darwin-amd64.tar.gz](https://github.com/tinygo-org/tinygo/releases/download/v0.30.0/tinygo0.30.0.darwin-amd64.tar.gz).
2. Extract the package and update your PATH:
```shell
tar xvf tinygo-0.30.0.darwin-amd64.tar.gz
export PATH=<extract location>/tinygo/bin:$PATH
```

You can test that the installation is working properly by running this code which should display the version number:

```shell
$ tinygo version
tinygo version
```

```text
tinygo version 0.30.0 darwin/amd64 (using go version go1.21 and LLVM version 16.0.0)
```

Expand All @@ -42,7 +45,9 @@ Otherwise, please continue with the installation of the additional requirements

If you are only interested in compiling TinyGo code for ARM microcontrollers then you are now done with the installation.

Some boards require a special flashing tool for that particular chip, like `openocd` or `nrfjprog`. See the documentation page for your board as listed [here](../../../docs/reference/microcontrollers/) to see which flashing tool is required for your target board.
Some boards require a special flashing tool for that particular chip, like `openocd` or `nrfjprog`.

[The Microcontrollers List](../../../docs/reference/microcontrollers/) documents which flashing tool is required for the supported target board.

#### AVR (e.g. Arduino Uno)

Expand All @@ -58,7 +63,7 @@ You can download the latest builds from the TinyGo `dev` branch where active dev

To obtain the binary, first go to the list of recent actions for the macOS build:

https://github.com/tinygo-org/tinygo/actions/workflows/build-macos.yml?query=branch%3Adev
<https://github.com/tinygo-org/tinygo/actions/workflows/build-macos.yml?query=branch%3Adev>

Click on the link for the build you want to download. The most recent one is located at the top.

Expand Down