diff options
| author | 2021-11-20 09:17:04 +0800 | |
|---|---|---|
| committer | 2021-11-20 09:44:41 +0800 | |
| commit | 38879cd3d9d93df496a2e679a99e6fed0c6d58c7 (patch) | |
| tree | e9056748d5238c2b08fae85a788872fd002b98e2 | |
| parent | eb3123adb8237733a1581d47f8e898d97e807729 (diff) | |
| download | bun-38879cd3d9d93df496a2e679a99e6fed0c6d58c7.tar.gz bun-38879cd3d9d93df496a2e679a99e6fed0c6d58c7.tar.zst bun-38879cd3d9d93df496a2e679a99e6fed0c6d58c7.zip | |
Add information about code signing
| -rw-r--r-- | README.md | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -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,7 +990,7 @@ 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 @@ -992,12 +1002,11 @@ npm i Then ```bash +# if you're not already in the bun root directory +cd ../../ make test-dev-all ``` -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. ### Troubleshooting @@ -1044,7 +1053,7 @@ Compile Bun: make vendor dev ``` -Verify it worked: +### Verify it worked First ensure the node dependencies are installed @@ -1056,6 +1065,8 @@ npm i Then ```bash +# if you're not already in the bun root directory +cd ../../ make test-dev-all ``` |
