File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ set -eo pipefail
2
+
1
3
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
+
2
19
gem install fontcustom --version 2.0.0
20
+
3
21
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 \
5
24
&& pushd sfnt2woff-zopfli \
6
25
&& make \
7
26
&& mv sfnt2woff-zopfli sfnt2woff \
8
27
&& echo " ${PWD} " >> " ${GITHUB_PATH} " \
9
28
&& 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 \
11
31
&& pushd woff2 \
12
32
&& make clean all \
13
33
&& echo " ${PWD} " >> " ${GITHUB_PATH} " \
You can’t perform that action at this time.
0 commit comments