aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-11-19 17:54:01 -0800
committerGravatar GitHub <noreply@github.com> 2021-11-19 17:54:01 -0800
commitf9d333bec21a43f02c6dd8d98e402ab4e925c72a (patch)
treee9056748d5238c2b08fae85a788872fd002b98e2
parent2b4f20b94c73dba4349720fcaccc85ea93ec4093 (diff)
parent38879cd3d9d93df496a2e679a99e6fed0c6d58c7 (diff)
downloadbun-f9d333bec21a43f02c6dd8d98e402ab4e925c72a.tar.gz
bun-f9d333bec21a43f02c6dd8d98e402ab4e925c72a.tar.zst
bun-f9d333bec21a43f02c6dd8d98e402ab4e925c72a.zip
Merge pull request #68 from mfeckie/docs/dev
Docs/dev
-rw-r--r--README.md41
1 files changed, 35 insertions, 6 deletions
diff --git a/README.md b/README.md
index ca8e9095d..bacfafb3b 100644
--- a/README.md
+++ b/README.md
@@ -961,7 +961,7 @@ export CPPFLAGS="$CPPFLAGS -I$(brew --prefix llvm@12)/include"
On fish that looks like `fish_add_path (brew --prefix llvm@12)/bin`
-Compile Zig:
+### Compile Zig
```bash
git clone https://github.com/jarred-sumner/zig
@@ -970,8 +970,18 @@ git checkout jarred/zig-sloppy-with-small-structs
cmake . -DCMAKE_PREFIX_PATH=$(brew --prefix llvm@12) -DZIG_STATIC_LLVM=ON -DCMAKE_BUILD_TYPE=Release && make -j 16
```
+Note that `brew install zig` won't work. Bun uses a build of Zig with a couple patches.
+
+Additionally, you'll need `cmake`, `npm` and `esbuild` installed globally.
+
You'll want to make sure `zig` is in `$PATH`. The `zig` binary wil be in the same folder as the newly-cloned `zig` repo. If you use fish, you can run `fish_add_path (pwd)`.
+### Build bun
+
+If you're building on an Apple Silicon device, you'll need to do is ensure you have set an environment variable `CODESIGN_IDENTITY`. You can find the correct value by visiting `Keychain Access` and looking under your `login` profile for `Certificates`. The name would usually look like `Apple Development: user@example.com (WDYABC123)`
+
+If you're not familiar with the process, there's a guide [here](https://ioscodesigning.com/generating-code-signing-files/#generate-a-code-signing-certificate-using-xcode)
+
In `bun`:
```bash
@@ -980,15 +990,23 @@ git submodule update --init --recursive --progress --depth=1
make vendor jsc identifier-cache dev
```
-Verify it worked:
+### Verify it worked
+
+First ensure the node dependencies are installed
```bash
-make test-dev-all
+cd integration/snippets
+npm i
```
-Note that `brew install zig` won't work. Bun uses a build of Zig with a couple patches.
+Then
+
+```bash
+# if you're not already in the bun root directory
+cd ../../
+make test-dev-all
+```
-Additionally, you'll need `cmake`, `npm` and `esbuild` installed globally.
### Troubleshooting
@@ -1035,9 +1053,20 @@ Compile Bun:
make vendor dev
```
-Verify it worked:
+### Verify it worked
+
+First ensure the node dependencies are installed
+
+```bash
+cd integration/snippets
+npm i
+```
+
+Then
```bash
+# if you're not already in the bun root directory
+cd ../../
make test-dev-all
```