Skip to content

Commit e9eacd1

Browse files
committed
DOC: improve Build Release and Development sections
1 parent 655dbd8 commit e9eacd1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ jobs:
6868
with:
6969
files: dist/*
7070
generate_release_notes: true
71+
72+
- run: ./scripts/gen_downloads.sh "$GITHUB_REF_NAME"

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ Last build: `2025-10-14T18:08:12Z` with Alpine Linux `v3.22`
7575
* kernel: `uname --kernel-release`
7676
* libc: `ldd --version`
7777

78+
## Build Release
79+
```sh
80+
# example: build static wget binary for current platform
81+
docker build -o=dist main/wget
82+
83+
# example: build for another platform (not fully tested, use with caution)
84+
docker build --platform linux/386 -o=dist main/wget # build linux/386 on amd64 host
85+
docker build --platform linux/arm/v7 -o=dist main/wget # build linux/arm/v7 on arm64 host
86+
```
87+
7888
## Development
7989
```sh
8090
# use docker as build environment
@@ -90,9 +100,11 @@ ln -s /var/cache/apk /etc/apk/cache
90100
apk upgrade && apk add alpine-sdk git nano
91101
git clone https://github.com/whoisnian/static-binaries.git /src
92102

93-
# example: build htop using original APKBUILD
103+
# example: manually run htop build commands in the Dockerfile
94104
cd /src/main/htop/aports
95105
abuild -F deps
106+
apk add ncurses-static
107+
sed -i APKBUILD -e 's|./configure|./configure --enable-static|'
96108
abuild -F fetch verify unpack prepare mkusers build package
97109

98110
./pkg/htop/usr/bin/htop --help

0 commit comments

Comments
 (0)