From eb240ab5dd21a9c2c01f263f02e15174137a7af9 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:05:35 +0100 Subject: [PATCH 1/3] install Source Han Sans font --- scripts/install | 9 +++++++++ scripts/upgrade | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/scripts/install b/scripts/install index 873e4e8..4f3e133 100755 --- a/scripts/install +++ b/scripts/install @@ -50,6 +50,15 @@ $install_dir/venv/bin/python3 "$install_dir/manage.py" initdb $install_dir/venv/bin/python3 "$install_dir/manage.py" compile_themes $install_dir/venv/bin/python3 "$install_dir/manage.py" collectstatic --no-input +#================================================= +# INSTALL SOURCE HAN SANS FONT +#================================================= +ynh_script_progression --message="Installing Source Han Sans font..." --weight=1 + +pushd $install_dir/static/fonts/source_han_sans + wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc +popd + #================================================= # NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f6ee5d6..d7290b1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,6 +70,15 @@ $install_dir/venv/bin/python3 "$install_dir/manage.py" populate_streams $install_dir/venv/bin/python3 "$install_dir/manage.py" makemigrations --merge --noinput $install_dir/venv/bin/python3 "$install_dir/manage.py" migrate +#================================================= +# INSTALL SOURCE HAN SANS FONT +#================================================= +ynh_script_progression --message="Installing Source Han Sans font..." --weight=1 + +pushd $install_dir/static/fonts/source_han_sans + wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc +popd + #================================================= # SET PERMISSIONS ON BOOKWYRM DIRECTORY #================================================= From d515001404fe766b97e6cfa1d52c5b8473b65cd7 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:40:09 +0100 Subject: [PATCH 2/3] fix shitload warning --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 4f3e133..d06ea27 100755 --- a/scripts/install +++ b/scripts/install @@ -56,7 +56,7 @@ $install_dir/venv/bin/python3 "$install_dir/manage.py" collectstatic --no-input ynh_script_progression --message="Installing Source Han Sans font..." --weight=1 pushd $install_dir/static/fonts/source_han_sans - wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc +ynh_exec_warn_less wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc popd #================================================= From a62cc5dd0bc05735d09682c89aef42880cff7f70 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:45:55 +0100 Subject: [PATCH 3/3] fix warning wget --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index d7290b1..86c4e2d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,7 +76,7 @@ $install_dir/venv/bin/python3 "$install_dir/manage.py" migrate ynh_script_progression --message="Installing Source Han Sans font..." --weight=1 pushd $install_dir/static/fonts/source_han_sans - wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc +ynh_exec_warn_less wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc popd #=================================================