1
0
Fork 0
mirror of https://github.com/vinceliuice/WhiteSur-icon-theme.git synced 2024-11-21 05:10:09 +00:00
This commit is contained in:
vinceliuice 2024-06-25 08:03:41 +08:00
parent 5869420f84
commit 2c04cfdb6e
2 changed files with 42 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.xz

40
release/make-release.sh Executable file
View file

@ -0,0 +1,40 @@
#! /bin/bash
THEME_DIR=$(cd $(dirname $0) && pwd)
THEME_NAME=WhiteSur
_THEME_VARIANTS=('' '-red' '-pink' '-purple' '-green' '-yellow' '-orange' '-grey' '-nord')
if [ ! -z "${COMPA_VARIANTS:-}" ]; then
IFS=', ' read -r -a _COMPA_VARIANTS <<< "${COMPA_VARIANTS:-}"
fi
if [ ! -z "${COLOR_VARIANTS:-}" ]; then
IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
fi
if [ ! -z "${THEME_VARIANTS:-}" ]; then
IFS=', ' read -r -a _THEME_VARIANTS <<< "${THEME_VARIANTS:-}"
fi
Tar_themes() {
for theme in "${_THEME_VARIANTS[@]}"; do
rm -rf "${THEME_NAME}${theme}.tar.xz"
done
for theme in "${_THEME_VARIANTS[@]}"; do
tar -Jcvf "${THEME_NAME}${theme}.tar.xz" "${THEME_NAME}${theme}"{'','-light','-dark'}
done
}
Clear_theme() {
for theme in "${_THEME_VARIANTS[@]}"; do
[[ -d "${THEME_NAME}${theme}" ]] && rm -rf "${THEME_NAME}${theme}"{'','-light','-dark'}
done
}
cd .. && ./install.sh -d $THEME_DIR -t all -a
cd $THEME_DIR && Tar_themes && Clear_theme