-
Notifications
You must be signed in to change notification settings - Fork 73
/
makebuild.sh
executable file
·25 lines (18 loc) · 1.02 KB
/
makebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# usage: ./makebuild.sh name winerepo branch
# example: ./makebuild.sh lutris-GE https://github.com/GloriousEggroll/proton-wine Proton8-15
# build name output: builds/runners/wine/wine-lutris-GE-Proton8-15-x86_64.tar.xz
if [[ ! -d builds ]]; then
mkdir -p builds
fi
if [[ -z $(podman container list -a | grep buildbot) ]]; then
docker create --interactive --name buildbot --mount type=bind,source="$PWD"/builds,destination=/builds,readonly=false --mount type=bind,source="$PWD"/buildbot,destination=/home/vagrant/buildbot,readonly=false docker.io/gloriouseggroll/lutris_buildbot:bullseye
fi
docker start buildbot
# cleanup any old builds first
docker exec buildbot bash -c "rm -Rf /home/vagrant/buildbot/runners/wine/wine-src/"
# start build
docker exec buildbot bash -c "cd /home/vagrant/buildbot/runners/wine && ./build.sh --as $1 --version $3 --with $2 --branch $3"
docker stop buildbot
cd builds/runners/wine
export SHA512NAME=$(ls | grep tar.xz | sed -r 's/tar.xz/sha512sum/g'); sha512sum $(ls | grep tar.xz) > $SHA512NAME