Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
## Building static Linux binaries with Docker | ||
`build-release` is the entry point to generate the binaries and Breakpad symbol files for a given | ||
platform. Currently the working configurations are Linux hosts for Linux, NaCl, or Windows | ||
targets and binaries and MSYS2 for Windows targets. For Linux, it is difficult to set up the | ||
required static libraries, so the Docker build is especially useful. | ||
|
||
## Building in docker | ||
|
||
For the `rev` argument, you should use a tag or a commit hash, rather than a branch | ||
name, in order to avoid false caching. | ||
|
||
It is recommended to check the results with [validate-release](https://github.com/Unvanquished/validate-release), | ||
e.g. `../validate-release/validate-release linux-amd64.zip`. | ||
|
||
### Build static Linux binaries | ||
``` | ||
# Build | ||
docker build -t unvrel . --build-arg=rev=3173f3307 | ||
docker build -t unvrel . --build-arg=rev=3173f3307 --build-arg=targets=linux-amd64 | ||
# Get outputs | ||
docker create --name tmp unvrel | ||
docker cp tmp:/Unvanquished/build/release/linux-amd64.zip . | ||
docker rm tmp | ||
``` | ||
|
||
It is recommended to check the results with [validate-release](https://github.com/Unvanquished/validate-release), e.g. `../validate-release/validate-release linux-amd64.zip`. | ||
### Build everything supported in Docker | ||
``` | ||
# Build | ||
docker build -t unvrel . --build-arg=rev=8bef4ceee | ||
# Get outputs | ||
docker create --name tmp unvrel | ||
docker cp tmp:/Unvanquished/build/release/unvanquished_0.zip . | ||
docker rm tmp | ||
``` |