Update Building-Fleet.md (#12345)

Added instructions for installing dependency - Rosetta 2.
This commit is contained in:
Sabrina Coy 2023-06-14 19:42:12 -04:00 committed by GitHub
parent 517acdad72
commit b81d182841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,12 @@ To generate all necessary code (bundling JavaScript into Go, etc.), run the foll
make generate
```
If you are using a Mac computer with Apple Silicon and have not installed Rosetta 2, you will need to do so before running `make generate`.
```
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
```
#### Automatic rebuilding of the JavaScript bundle
Usually, `make generate` takes the JavaScript code, bundles it into a single bundle via Webpack, and inlines that bundle into a generated Go source file so that all of the frontend code can be statically compiled into the binary. When you build the code after running `make generate`, include all of that JavaScript in the binary.