求助: beta36 构建失败 #322
-
|
自己构建字体, 在 beta33时还可以在beta36不行了, 看日志是在构建中文字体的时候, 是中文字体路径更改了吗, config.json 用的是和版本源代码一样的, 启用了 cv03 和 zero. FROM git/docker/code:main
ARG VERSION
COPY config.json /root/config.json
RUN curl -OJ https://repo/pkg/maple-font/maple-font-${VERSION}.tar.gz \
&& tar zxf maple-font-${VERSION}.tar.gz \
&& mv maple-font-${VERSION} maplemono \
&& mv config.json maplemono \
&& mkdir -p maplemono/source/cn/static \
&& cd maplemono/source/cn/static \
&& curl -OJ https://repo/pkg/maple-font/cn-base-static.tar.gz \
&& tar zxf cn-base-static.tar.gz \
&& rm -f cn-base-static.tar.gz \
&& cd /root/maplemono \
&& pip install -q -r requirements.txt \
&& python build.py --archive
180.7 File "/root/maplemono/build.py", line 1125, in _build_cn
180.7 run_build(font_config.pool_size, fn, build_option.cn_base_font_dir)
180.7 File "/root/maplemono/build.py", line 956, in run_build
180.7 p.map(fn, listdir(dir))
180.7 File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 367, in map
180.7 return self._map_async(func, iterable, mapstar, chunksize).get()
180.7 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
180.7 File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 774, in get
180.7 raise self._value
180.7 KeyError: ('emdash.full', 0, 'SubTable[]', 344, 'Lookup[]', 'LookupList')完整日志 |
Beta Was this translation helpful? Give feedback.
Answered by
subframe7536
Jan 31, 2025
Replies: 1 comment 1 reply
-
|
现在的脚本会自动下载中文字体,如果需要从指定的 github 镜像获取,可以设置 $GITHUB 环境变量 config.json 应当在 /root/maplemono 目录下 cn-base-static.zip 放到 /root/maplemono 目录下,构建时会自动解压 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lutinglt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现在的脚本会自动下载中文字体,如果需要从指定的 github 镜像获取,可以设置 $GITHUB 环境变量
config.json 应当在 /root/maplemono 目录下
cn-base-static.zip 放到 /root/maplemono 目录下,构建时会自动解压