Skip to content

Commit f47cb42

Browse files
committed
fix #460: use install-unix (which was a typo) for the installer filename for TinyTeX <= v2025.01, and installer-unix for higher versions
1 parent f9205b4 commit f47cb42

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: tinytex
22
Type: Package
33
Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents
4-
Version: 0.54.1
4+
Version: 0.54.2
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
77
person(given = "Posit Software, PBC", role = c("cph", "fnd")),

tinytex.Rproj

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: e10a7696-0e51-49a0-8351-9df9da88574c
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

tools/install-bin-unix.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@ rm -rf $TEXDIR
3838
if [ -z $TINYTEX_VERSION ]; then
3939
TINYTEX_URL="https://github.com/rstudio/tinytex-releases/releases/download/daily/$TINYTEX_INSTALLER"
4040
else
41+
# the installer was accidentally named "install-unix" instead of "installer-unix" before v2025.01
42+
if [ "$TINYTEX_INSTALLER" = "installer-unix" ] && [[ "$TINYTEX_VERSION" -le "2025.01" ]]; then
43+
TINYTEX_INSTALLER="install-unix"
44+
fi
4145
TINYTEX_URL="https://github.com/rstudio/tinytex-releases/releases/download/v$TINYTEX_VERSION/$TINYTEX_INSTALLER-v$TINYTEX_VERSION"
4246
fi
4347

4448
if [ $OSNAME = 'Darwin' ]; then
4549
curl -L -f --retry 10 --retry-delay 30 ${TINYTEX_URL}.tgz -o TinyTeX.tgz
4650
tar xf TinyTeX.tgz -C $(dirname $TEXDIR)
4751
rm TinyTeX.tgz
48-
else if [ $TINYTEX_INSTALLER != 'installer-unix' ]; then
52+
else if [[ "$TINYTEX_INSTALLER" =~ ^"TinyTeX-" ]]; then
4953
wget --retry-connrefused --progress=dot:giga -O TinyTeX.tar.gz ${TINYTEX_URL}.tar.gz
5054
tar xf TinyTeX.tar.gz -C $(dirname $TEXDIR)
5155
rm TinyTeX.tar.gz

0 commit comments

Comments
 (0)