Skip to content

Commit a4040fc

Browse files
committed
fix: correct FreeSans font tar member path
The GNU freefont OTF archive uses directory name 'freefont-20120503/', not 'freefont-otf-20120503/'. The wrong member filter caused tar to fail with 'Not found in archive', and set -euo pipefail killed the entire stage step. Also split the curl|tar pipeline so a download failure doesn't abort the step, letting the warning fallback work.
1 parent d31db66 commit a4040fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ jobs:
363363
# fonts/FreeSansBold.otf relative to the writeable data dir.
364364
FONT_DIR="$GAME_DIR/fonts"
365365
mkdir -p "$FONT_DIR"
366-
curl -sL "https://ftp.gnu.org/gnu/freefont/freefont-otf-20120503.tar.gz" | \
367-
tar xz -C "$FONT_DIR" --strip-components=1 "freefont-otf-20120503/FreeSansBold.otf"
366+
curl -sL "https://ftp.gnu.org/gnu/freefont/freefont-otf-20120503.tar.gz" > /tmp/freefont.tar.gz
367+
&& tar xzf /tmp/freefont.tar.gz -C "$FONT_DIR" --strip-components=1 "freefont-20120503/FreeSansBold.otf" || true
368368
if [ ! -f "$FONT_DIR/FreeSansBold.otf" ]; then
369369
echo "::warning::Failed to download FreeSansBold.otf, game may fail to start"
370370
fi

0 commit comments

Comments
 (0)