Newer
Older
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
# Copyright 2021-2023 Collabora Ltd.
# SPDX-License-Identifier: MIT
set -eux
builddir="${1:-_build/scout-layered}"
rm -fr "$builddir/steam-container-runtime/depot"
install -d "$builddir/steam-container-runtime/depot"
install -d "$builddir/steam-container-runtime/steampipe"
install -m644 \
subprojects/container-runtime/steampipe/app_build_1070560.vdf \
subprojects/container-runtime/steampipe/depot_build_1070561.vdf \
"$builddir/steam-container-runtime/steampipe/"
case "${CI_COMMIT_TAG-}" in
(v*)
depot_version="${CI_COMMIT_TAG}"
;;
(*)
depot_version="$(git describe --always --match="v*" HEAD)"
;;
esac
if [ -n "${SOURCE_DATE_EPOCH-}" ]; then
timestamp="@${SOURCE_DATE_EPOCH}"
elif [ -n "${CI_COMMIT_TIMESTAMP-}" ]; then
timestamp="${CI_COMMIT_TIMESTAMP}"
else
timestamp="$(git log --pretty=format:'@%at' HEAD~..)"
fi
echo "${depot_version#v}" > subprojects/container-runtime/.tarball-version
./subprojects/container-runtime/populate-depot.py \
--depot="$builddir/steam-container-runtime/depot" \
--depot-version="${depot_version#v}" \
--layered \
--steam-app-id=1070560 \
scout
head -n-0 "$builddir/steam-container-runtime/depot/VERSIONS.txt"
tar \
-C "$builddir" \
--clamp-mtime \
--mtime="${timestamp}" \
--owner=nobody:65534 \
--group=nogroup:65534 \
--mode=u=rwX,go=rX \
--use-compress-program='pigz --fast -c -n --rsyncable' \
-cvf "$builddir/steam-container-runtime.tar.gz" \
steam-container-runtime
# vim:set sw=4 sts=4 et: