maple-font icon indicating copy to clipboard operation
maple-font copied to clipboard

Provide a Dockerfile for builds

Open ravshansbox opened this issue 1 year ago • 13 comments

Currently it's hard to build the font. I've tried both on mac and linux without any success. Would be great to have a docker build.

ravshansbox avatar Apr 16 '24 16:04 ravshansbox

There will be a browser-based tool for custom build.

Also, in v7, the minimal dependency is foundrytools-cli. I don't think it's too hard to install it.

subframe7536 avatar Apr 17 '24 00:04 subframe7536

Installing it is not hard, but in bare ubuntu it is not working

ravshansbox avatar Apr 20 '24 12:04 ravshansbox

Is there any error log?

subframe7536 avatar Apr 20 '24 13:04 subframe7536

Yeap, sure. Here it is image

ravshansbox avatar Apr 20 '24 15:04 ravshansbox

What are the exact steps to do this in a fresh ubuntu?

ravshansbox avatar Apr 20 '24 15:04 ravshansbox

hmm... I recommend to create a codespace on variable branch and build the font in it

subframe7536 avatar Apr 20 '24 15:04 subframe7536

What are the exact steps to do this in a fresh ubuntu?

In my Debian on WSL, there is no extra step

subframe7536 avatar Apr 20 '24 15:04 subframe7536

I'm pretty sure you need to install python and pip at least

ravshansbox avatar Apr 20 '24 16:04 ravshansbox

In codespace:

  1. pip install foundrytools-cli
  2. python build.py

That's all

subframe7536 avatar Apr 20 '24 16:04 subframe7536

Figured out what was missing, it's the python-is-python3 package

ravshansbox avatar Apr 21 '24 14:04 ravshansbox

So basically, these are the required apt packages python3 python-is-python3 fontforge python3-fontforge

ravshansbox avatar Apr 21 '24 14:04 ravshansbox

Thanks. Docs updated

subframe7536 avatar Apr 21 '24 14:04 subframe7536

Also, if one wants to use docker for this, the param --platform=linux/x86_64 should be included on ARM Macs, otherwise linux/arm64 is chosen and some packages won't compile on it

ravshansbox avatar Apr 21 '24 14:04 ravshansbox

i use this:

FROM python
WORKDIR /app
COPY . .
RUN apt update && apt upgrade -y && apt install fontforge -y && pip install foundrytools-cli
CMD ["python", "build.py"]

Gn3po4g avatar Jul 30 '24 01:07 Gn3po4g