-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·32 lines (28 loc) · 790 Bytes
/
build.sh
File metadata and controls
executable file
·32 lines (28 loc) · 790 Bytes
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
#!/bin/sh
PICP_URL=https://github.com/pzcn/Perfect-Icons-Completion-Project.git
cd $(dirname "$0")
if [ ! -d PICP ]; then
echo - Downloading icons
rm -rf PICP
git clone $PICP_URL PICP --depth=1 --no-tags
fi
echo - Processing icons
rm -rf dist
cp -r module/ dist/
cp -r PICP/icons dist/uxicons
cd dist/uxicons
rm -rf com.coloros.relax
for pkg in *
do
mv $pkg/0.png $pkg/recbg.png 2>/dev/null
mv $pkg/1.png $pkg/recfg.png 2>/dev/null
mv $pkg/background.png $pkg/recbg.png 2>/dev/null
mv $pkg/foreground.png $pkg/recfg.png 2>/dev/null
convert -gravity center -crop 66.6667%x66.6667%+0+0 $pkg/recfg.png $pkg/recfg.png
done
cd ..
echo - Packing installer
if command -v 7z > /dev/null 2>&1; then
rm -f ../coloros-icon.zip
7z a ../coloros-icon.zip *
fi