-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sh
47 lines (37 loc) · 1.31 KB
/
build.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
build=./build
color_schemes=./color-schemes
if [ ! -d $build ]; then
mkdir $build
fi
for i in $color_schemes/*;
do
for f in $i/*;
do
if [ -d $f ]; then (
name=$(basename $f)-$(basename $(dirname $f))
if [ ! -d $build/$name ]; then
mkdir $build/$name
fi
if [ ! -d $build/$name/screenshots ]; then
mkdir $build/$name/screenshots
fi
cp $f/background.png $build/$name &&
cp $f/box.png $build/$name &&
cp $f/bullet.png $build/$name &&
cp $f/entry.png $build/$name &&
cp $f/lock.png $build/$name &&
cp $f/logo.png $build/$name &&
cp $f/progress-bar.png $build/$name &&
cp $f/progress-box.png $build/$name &&
sed "s/::NAME::/$name/g" plymouth > $build/$name/$name.plymouth &&
cat script > $build/$name/$name.script &&
python3 -B ./create-screenshots.py --path=$build/$name &&
# creates/updates readme screenshots
cp $build/$name/screenshots/1024x768.png ./screenshots/$name.png &&
cp $build/$name/screenshots/1024x768-encrypted.png ./screenshots/$name-encrypted.png
) || exit 1
fi
done;
done;
echo "Done!"