-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sh
executable file
·36 lines (30 loc) · 942 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
32
33
34
35
36
#!/usr/bin/env bash
copy_file_and_zip() {
cp ../assets/"$1" ./"$2"
touch -t "202309150000" ./"$2"
zip "$3".zip "$2"
rm ./"$2"
}
copy_dir_and_zip() {
cp -r ../assets/"$1" ./"$1"
find ./"$1" -exec touch -t "202309150000" '{}' \;
zip -r -D -X -9 -A --compression-method deflate "$1".zip "$1"
rm -r ./"$1"
}
if [ "$(ls -A ./docs)" ]; then
rm -r ./docs/*
fi
cd ./docs || exit 1
copy_file_and_zip zhwiki-20230823.dict zhwiki.dict zhwiki_fallback
copy_file_and_zip zhwiki-20250310.dict zhwiki.dict zhwiki
copy_file_and_zip symbols.mb symbols.mb symbols
copy_file_and_zip punc.mb.zh_CN punc.mb.zh_CN punc_zh_CN
copy_file_and_zip punc.mb.zh_CN_plus punc.mb.zh_CN punc_zh_CN_plus
copy_dir_and_zip 星空黑
copy_dir_and_zip dracula
copy_dir_and_zip Simple-dark
copy_dir_and_zip Simple-white
copy_dir_and_zip uppercase_addon
copy_dir_and_zip lua
cp ../assets/logo.png ./logo.png
cp ../fcitx5_customizer.sh ./fcitx5_customizer.sh