WhiteSur-gtk-theme/make-release.sh

47 lines
1.2 KiB
Bash
Raw Normal View History

2021-07-08 11:12:25 +02:00
#! /usr/bin/env bash
readonly REPO_DIR="$(dirname "$(readlink -m "${0}")")"
readonly RELEASE_DIR="${REPO_DIR}/release"
source "${REPO_DIR}/lib-install.sh"
# Customization, default values
colors=("${COLOR_VARIANTS[@]}")
opacities=("${OPACITY_VARIANTS[@]}")
2022-10-19 17:37:04 +02:00
C_VARIANTS=('-Light' '-Dark')
2021-07-08 11:12:25 +02:00
S_VARIANTS=('' '-solid')
install() {
remove_themes; customize_theme; avoid_variant_duplicates
install_themes; echo; prompt -s "Install Gnome${RELEASE_VERSION} version finished!"; echo
}
compress() {
for color in "${C_VARIANTS[@]}"; do
for solid in "${S_VARIANTS[@]}"; do
rm -rf ${RELEASE_DIR}/${THEME_NAME}${color}${solid}${RELEASE_VERSION}.tar.xz
done
done
cd ${THEME_DIR}
for color in "${C_VARIANTS[@]}"; do
for solid in "${S_VARIANTS[@]}"; do
tar -Jcf ${RELEASE_DIR}/${THEME_NAME}${color}${solid}${RELEASE_VERSION}.tar.xz ${THEME_NAME}${color}${solid}
done
done
}
2022-10-19 17:37:04 +02:00
GNOME_VERSION="3-28"
2021-07-08 11:12:25 +02:00
RELEASE_VERSION="-3-38"
install && compress
prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo
2022-10-19 17:37:04 +02:00
GNOME_VERSION="42-0"
RELEASE_VERSION="-42-0"
2021-07-08 11:12:25 +02:00
install && compress
prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo
prompt -s "Done!"; echo
exit 0