一些可能会复用的脚本
构建静态网站并上传到服务器
#!/usr/bin/env bash
cd ../
remote_dist_path="/home/lighthouse/www/dist"# clear remote distssh root@lighthouse "rm -rf $remote_dist_path"# mkdir remote distssh root@lighthouse "mkdir $remote_dist_path"# build and scppnpm build && scp -r dist/* usr@lighthouse:$remote_dist_pathsplit ttc to ttf(s)
#!/usr/bin/env python
from fontTools.ttLib.ttCollection import TTCollectionimport osimport sys
filename = sys.argv[1]ttc = TTCollection(filename)basename = os.path.basename(filename)for i, font in enumerate(ttc): font.save(f"{basename}#{i}.ttf")