Skip to content

Commit 5986f89

Browse files
Added release instruction md file
1 parent 76e3cd8 commit 5986f89

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

RELEASE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Generating release binaries
2+
3+
The script `release_make.sh` is used to generate all release binaries.
4+
5+
## Prerequisites
6+
To run the script you will need to be on a POSIX system with
7+
`make`, `zip`, `tar`, [`zig`][2], and [`emcc`][3] in the `PATH`.
8+
9+
You will also need a [musl libc][1] sysroot. Such a sysroot may easily
10+
be created by downloading the musl source code and building and
11+
installing it at a local prefix. The script `musl-sysroot_make.sh` will
12+
download a musl release using `curl` and create a `musl-sysroot` sub directory
13+
in the current working directory.
14+
15+
## Running the script
16+
17+
If you have a `musl-sysroot` folder created by `musl-sysroot_make.sh`, then you
18+
may run
19+
```Shell
20+
MUSL_SYSROOT=musl-sysroot ./release_make.sh
21+
```
22+
The release binaries and zip files will be in the `build_release`
23+
directory.
24+
25+
## Cleaning
26+
27+
```Shell
28+
./release_clean.sh
29+
```

0 commit comments

Comments
 (0)