22.1.0
This commit is contained in:
parent
b6e2da06ea
commit
4352e9b403
@ -12,5 +12,5 @@ sudo apt-get install docker.io
|
|||||||
|
|
||||||
Сборка шрифта выполняется командой `make`, результат сохраняется в каталог `dist`.
|
Сборка шрифта выполняется командой `make`, результат сохраняется в каталог `dist`.
|
||||||
|
|
||||||
Готовый шрифт версии [22.0.1](../../../releases/download/22.0.1/iosevka-prog-22.0.1.tar.xz).
|
Готовый шрифт версии [22.1.0](../../../releases/download/22.1.0/iosevka-prog-22.1.0.tar.xz).
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
IOSEVKA_VERSION=22.0.1
|
IOSEVKA_VERSION=22.1.0
|
||||||
FONT_NAME=iosevka-prog
|
FONT_NAME=iosevka-prog
|
||||||
FILE=$( readlink -f "${BASH_SOURCE[0]}" )
|
FILE=$( readlink -f "${BASH_SOURCE[0]}" )
|
||||||
DIR=$( dirname "${FILE}" )
|
DIR=$( dirname "${FILE}" )
|
||||||
@ -14,14 +14,20 @@ OUT_DIR="${DIST}/${FONT_NAME}/ttf"
|
|||||||
|
|
||||||
if [ -r "${CONFIG}" ]; then
|
if [ -r "${CONFIG}" ]; then
|
||||||
if command -v docker >/dev/null 2>&1; then
|
if command -v docker >/dev/null 2>&1; then
|
||||||
|
# docker pull avivace/iosevka-docker
|
||||||
|
docker pull nerdfonts/patcher
|
||||||
docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$DIR":/build avivace/iosevka-build -- ttf::${FONT_NAME}
|
docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$DIR":/build avivace/iosevka-build -- ttf::${FONT_NAME}
|
||||||
sudo chown -R "$(id -u)":"$(id -g)" "${DIST}"
|
sudo chown -R "$(id -u)":"$(id -g)" "${DIST}"
|
||||||
mkdir -p "${OBLIQUE}"
|
mkdir -p "${OBLIQUE}"
|
||||||
cp -af "${OUT_DIR}/${FONT_NAME}-oblique.ttf" "${OBLIQUE}"
|
cp -af "${OUT_DIR}/${FONT_NAME}-oblique.ttf" "${OBLIQUE}"
|
||||||
docker run -v "${OBLIQUE}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height && true
|
docker run -v "${OBLIQUE}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height --makegroups || true
|
||||||
mkdir -p "${REGULAR}"
|
mkdir -p "${REGULAR}"
|
||||||
cp -af "${OUT_DIR}/${FONT_NAME}-regular.ttf" "${REGULAR}"
|
cp -af "${OUT_DIR}/${FONT_NAME}-regular.ttf" "${REGULAR}"
|
||||||
docker run -v "${REGULAR}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height --mono --removeligatures && true
|
docker run -v "${REGULAR}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height --makegroups --mono --removeligatures || true
|
||||||
|
cd "${OUT_DIR}"
|
||||||
|
tar acf "${DIST}/fonts-iosevka-prog-nerd_${IOSEVKA_VERSION}.orig.tar.xz" Iosevka*Nerd*ttf
|
||||||
|
tar acf "${DIST}/fonts-iosevka-prog_${IOSEVKA_VERSION}.orig.tar.xz" iosevka*ttf
|
||||||
|
tar acf "${DIST}/iosevka-prog-${IOSEVKA_VERSION}.tar.xz" *ttf
|
||||||
else
|
else
|
||||||
echo "Docker executable not found"
|
echo "Docker executable not found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user