Skip to content
Snippets Groups Projects
Unverified Commit e9591b58 authored by Jeremy Rand's avatar Jeremy Rand Committed by boklm
Browse files

Bug 40186: fonts: Download .zip archive instead of Git clone

Reduces storage usage from >6 GiB to <40 MiB.
parent aa51ea97
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/fonts
mkdir -p $distdir
tar xf [% project %]-[% c("version") %].tar.gz
ln -s [% project %]-[% c("version") %] noto-fonts
unzip -o 720e34851382ee3c1ef024d8dffb68ffbfb234c2.zip
mv noto-fonts-* noto-fonts
mkdir -p $distdir
[% FOREACH fontfile = c("var/noto_fonts_hinted");
GET 'cp "noto-fonts/hinted/' _ fontfile _ '" $distdir' _ "\n";
......
# vim: filetype=yaml sw=2
version: '[% c("abbrev") %]'
git_url: https://github.com/googlei18n/noto-fonts.git
git_hash: 720e34851382ee3c1ef024d8dffb68ffbfb234c2
version: '1'
filename: "[% project %]-[% c('version') %]-[% c('var/build_id') %].tar.gz"
var:
container:
......@@ -87,6 +85,8 @@ targets:
input_files:
- project: container-image
- URL: https://github.com/googlefonts/noto-fonts/archive/720e34851382ee3c1ef024d8dffb68ffbfb234c2.zip
sha256sum: 26029b0b157e30ba063a759a1af859f849b7090162802a2cf57dfaad06849528
- URL: https://github.com/googlei18n/noto-emoji/raw/2f1ffdd6fbbd05d6f382138a3d3adcd89c5ce800/fonts/NotoEmoji-Regular.ttf
sha256sum: 415dc6290378574135b64c808dc640c1df7531973290c4970c51fdeb849cb0c5
enable: '[% c("var/linux") %]'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment