File tree Expand file tree Collapse file tree
packages/pure/components/basic Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - name : Install fonttools
2929 run : pip install fonttools brotli
3030
31+ - name : Download font file
32+ run : |
33+ mkdir -p fonts-source
34+ echo "📥 下载思源宋体字体文件..."
35+ # 从 GitHub 直接下载 Noto Serif SC Regular TTF
36+ curl -L "https://github.com/google/fonts/raw/main/ofl/notoserifsc/NotoSerifSC-Regular.ttf" \
37+ -o fonts-source/NotoSerifSC-Regular.ttf || {
38+ echo "❌ 字体文件下载失败"
39+ exit 1
40+ }
41+ ls -lh fonts-source/
42+ echo "✅ 字体文件下载完成"
43+
3144 - name : Install dependencies
3245 run : bun install
3346 # edgeone CLI 已包含在 devDependencies 中
3750
3851 - name : Generate font subset (post-build script)
3952 run : node scripts/subset-fonts.js
40- continue-on-error : true # 如果字体子集化失败,不影响部署
53+ # 如果字体子集化失败,会终止整个流程(已移除 continue-on-error)
4154
4255 - name : Verify build output
4356 run : |
Original file line number Diff line number Diff line change 11---
2- import { Icon as DevIcon } from ' astro-icon/components'
32import config from ' virtual:config'
43
54import { getPlatformLabel , hasIcon } from ' ../../libs/social'
You can’t perform that action at this time.
0 commit comments