-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sh
31 lines (23 loc) · 807 Bytes
/
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
#!/bin/bash
# 1) Recompile CSS files and extract colors
# 1a) DARKHUMHUB
cd resources/DarkHumHub
lessc less/build.less css/theme.css
# Note: Unfortunately the color extractor removes the CSS variables
css-color-extractor css/theme.css css/theme.css --format=css
# Re-add CSS variables and compress CSS
cp css/theme.css css/temporary.less
lessc less/build2.less css/theme.css --clean-css="--s1 --advanced"
rm css/temporary.less
# 1b) DARKENTERPRISE
cd ../DarkEnterprise
lessc less/build.less css/theme.css
css-color-extractor css/theme.css css/theme.css --format=css
cp css/theme.css css/temporary.less
lessc less/build2.less css/theme.css --clean-css="--s1 --advanced"
rm css/temporary.less
cd ../../
# 2) Update message files
cd ../../
php yii message/extract-module dark-mode
cd modules/dark-mode