summaryrefslogtreecommitdiff
path: root/tools/build-debian
blob: c64fc78130b36576949aa83d983fcad5f27bb81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e

## tools/build-builder
##
## Builds a Debian package for the current tree. Output in ./target/debian.
##
## Requires the Debian builder (see tools/build-builder).

cd "$(dirname "$0")/.."

for platform in linux/arm64 linux/amd64; do
	docker run \
		--platform "$platform" \
		--rm \
		--interactive \
		--tty \
		--volume "$PWD:/app" \
		"hi-debian-builder:$(tools/version)" \
			cargo deb
done