blob: 8da3c8578c13eb07a2904c95554c8bead1a06367 (
plain)
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
|
#!/bin/bash
URL="https://github.com/wtfbbqhax/tremulous-data/raw/master/"
packages="
data-1.1.0.pk3
data-gpp1.pk3
map-arachnid2-1.1.0.pk3
map-atcs-1.1.0.pk3
map-karith-1.1.0.pk3
map-nexus6-1.1.0.pk3
map-niveus-1.1.0.pk3
map-transit-1.1.0.pk3
map-tremor-1.1.0.pk3
map-uncreation-1.1.0.pk3
"
for dir in ./build/*; do
if [[ ! -d $dir ]]; then
continue;
fi
# Download
if [[ $dir == "./build/release-darwin-x86_64" ]]; then
pushd $dir/Tremulous.app/Contents/MacOS/gpp/
else
pushd $dir/gpp
fi
for i in $packages; do
if [[ -e $package ]]; then
rm -f $package # only want 1 copy
fi
curl -OL $URL/$i
done
popd
# Repackage
pushd $dir
if [[ $dir == "./build/release-darwin-x86_64" ]]; then
zip -r ../$(basename $dir).zip Tremulous.app
else
zip -r ../$(basename $dir).zip gpp/*.pk3
fi
popd
done
|