-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·47 lines (34 loc) · 1.33 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
echo Download fonts...
echo
wget 'https://moji-waku.com/download/kaiso_up.zip' -O ./kaiso.zip
unzip -q ./kaiso.zip -d tmpfont
rm ./kaiso.zip
mv -n ./tmpfont/kaiso_up/Kaisotai-Next-UP-B.otf ./public/fonts
wget --user-agent='Mozilla/5.0' 'https://www.fontspace.com/get/family/l2pyq' -O ./heorot.zip
unzip -q ./heorot.zip -d tmpfont
rm ./heorot.zip
mv -n ./tmpfont/Heorot-4rLK.ttf ./public/fonts
wget --user-agent='Mozilla/5.0' --referer='https://fonts2u.com/laonglaan.font' 'https://fonts2u.com/download/laonglaan.font' -O ./la.zip
unzip -q ./la.zip -d tmpfont
rm ./la.zip
mv -n ./tmpfont/LaongLaan/LaongLaan.ttf ./public/fonts
wget --user-agent='Mozilla/5.0' --referer='https://fonts2u.com/phyrexia-neue-transliteration.font' 'https://fonts2u.com/download/phyrexia-neue-transliteration.font' -O ./phy.zip
unzip -q ./phy.zip -d tmpfont
rm ./phy.zip
mv -n ./tmpfont/Phyrexia_Neue_Transliteration/PhyrexiaNeue-Transliteration.otf ./public/fonts
rm -rf ./tmpfont
echo Build LightDM theme Labradorite v$(cat version)...
echo
rm -rf ./dist
npm install
npm run build
cp LICENSE ./dist/
echo Copy theme dir...
rm -rf /usr/share/web-greeter/themes/Labradorite
mkdir /usr/share/web-greeter/themes/Labradorite
cd ./dist
cp -r . /usr/share/web-greeter/themes/Labradorite
cd /usr/share/web-greeter/themes/Labradorite
chmod -R 755 .
echo Complete!