Skip to content

Commit f10fd41

Browse files
authored
Fix fontcustom (#73)
1 parent c225fec commit f10fd41

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/install-fontcustom.sh

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
1+
set -eo pipefail
2+
13
mkdir -p fontcustom && cd fontcustom
4+
5+
# Workaround for
6+
# > Error installing fontcustom:
7+
# > The last version of ffi (~> 1.0) to support your Ruby & RubyGems was 1.17.0.
8+
# > Try installing it with `gem install ffi -v 1.17.0` and then running the current command again
9+
# > ffi requires RubyGems version >= 3.3.22. The current RubyGems version is 3.1.6.
10+
# > Try 'gem update --system' to update RubyGems itself.
11+
# As an additional workaround for "gem update --system" erroring with:
12+
# > Error installing rubygems-update:
13+
# > There are no versions of rubygems-update (= 3.5.14) compatible with your Ruby & RubyGems
14+
# > rubygems-update requires Ruby version >= 3.0.0. The current ruby version is 2.7.8.225.
15+
# downgrading to specific version because Rubygems 3.5 dropped support for Ruby 2.7.x
16+
# https://blog.rubygems.org/2023/12/15/3.5.0-released.html
17+
gem update --system 3.4.22
18+
219
gem install fontcustom --version 2.0.0
20+
321
sudo apt-get install fontforge=1:20201107~dfsg-4build1
4-
git clone --branch v1.3.1 --depth 1 https://github.com/bramstein/sfnt2woff-zopfli.git \
22+
23+
git -c advice.detachedHead=false clone --branch v1.3.1 --depth 1 https://github.com/bramstein/sfnt2woff-zopfli.git \
524
&& pushd sfnt2woff-zopfli \
625
&& make \
726
&& mv sfnt2woff-zopfli sfnt2woff \
827
&& echo "${PWD}" >> "${GITHUB_PATH}" \
928
&& popd
10-
git clone --branch v1.0.2 --depth 1 --recursive https://github.com/google/woff2.git \
29+
30+
git -c advice.detachedHead=false clone --branch v1.0.2 --depth 1 --recursive https://github.com/google/woff2.git \
1131
&& pushd woff2 \
1232
&& make clean all \
1333
&& echo "${PWD}" >> "${GITHUB_PATH}" \

0 commit comments

Comments
 (0)