diff --git a/make-release.sh b/make-release.sh new file mode 100755 index 0000000..5d2bc83 --- /dev/null +++ b/make-release.sh @@ -0,0 +1,46 @@ +#! /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[@]}") + +C_VARIANTS=('-light' '-dark') +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 +} + +GNOME_VERSION="old" +RELEASE_VERSION="-3-38" +install && compress +prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo + +GNOME_VERSION="new" +RELEASE_VERSION="-40-0" +install && compress +prompt -s "Compress Gnome${RELEASE_VERSION} version finished!"; echo + +prompt -s "Done!"; echo +exit 0 diff --git a/release/WhiteSur-dark-3-38.tar.xz b/release/WhiteSur-dark-3-38.tar.xz new file mode 100644 index 0000000..a5a4844 Binary files /dev/null and b/release/WhiteSur-dark-3-38.tar.xz differ diff --git a/release/WhiteSur-dark-40-0.tar.xz b/release/WhiteSur-dark-40-0.tar.xz new file mode 100644 index 0000000..87d1329 Binary files /dev/null and b/release/WhiteSur-dark-40-0.tar.xz differ diff --git a/release/WhiteSur-dark-solid-3-38.tar.xz b/release/WhiteSur-dark-solid-3-38.tar.xz new file mode 100644 index 0000000..5ba7433 Binary files /dev/null and b/release/WhiteSur-dark-solid-3-38.tar.xz differ diff --git a/release/WhiteSur-dark-solid-40-0.tar.xz b/release/WhiteSur-dark-solid-40-0.tar.xz new file mode 100644 index 0000000..327c075 Binary files /dev/null and b/release/WhiteSur-dark-solid-40-0.tar.xz differ diff --git a/release/WhiteSur-light-3-38.tar.xz b/release/WhiteSur-light-3-38.tar.xz new file mode 100644 index 0000000..6027a16 Binary files /dev/null and b/release/WhiteSur-light-3-38.tar.xz differ diff --git a/release/WhiteSur-light-40-0.tar.xz b/release/WhiteSur-light-40-0.tar.xz new file mode 100644 index 0000000..c43e5d0 Binary files /dev/null and b/release/WhiteSur-light-40-0.tar.xz differ diff --git a/release/WhiteSur-light-solid-3-38.tar.xz b/release/WhiteSur-light-solid-3-38.tar.xz new file mode 100644 index 0000000..59bf5a5 Binary files /dev/null and b/release/WhiteSur-light-solid-3-38.tar.xz differ diff --git a/release/WhiteSur-light-solid-40-0.tar.xz b/release/WhiteSur-light-solid-40-0.tar.xz new file mode 100644 index 0000000..f8a9aad Binary files /dev/null and b/release/WhiteSur-light-solid-40-0.tar.xz differ