Merge pull request #50 from YunoHost-Apps/install-Source-Han-Sans

Install Source Han Sans font
This commit is contained in:
Thomas 2023-11-19 12:24:51 +01:00 committed by GitHub
commit e245656fcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -49,6 +49,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
ynh_exec_warn_less wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc
popd
#=================================================
# NGINX CONFIGURATION
#=================================================

View file

@ -85,6 +85,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
ynh_exec_warn_less wget https://github.com/adobe-fonts/source-han-sans/raw/release/Variable/OTC/SourceHanSans-VF.ttf.ttc
popd
#=================================================
# SET PERMISSIONS ON BOOKWYRM DIRECTORY
#=================================================