Skip to content

Commit

Permalink
fix #460: use install-unix (which was a typo) for the installer fil…
Browse files Browse the repository at this point in the history
…ename for TinyTeX <= v2025.01, and `installer-unix` for higher versions
  • Loading branch information
yihui committed Jan 30, 2025
1 parent f9205b4 commit f47cb42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tinytex
Type: Package
Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents
Version: 0.54.1
Version: 0.54.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person(given = "Posit Software, PBC", role = c("cph", "fnd")),
Expand Down
1 change: 1 addition & 0 deletions tinytex.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: e10a7696-0e51-49a0-8351-9df9da88574c

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down
6 changes: 5 additions & 1 deletion tools/install-bin-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ rm -rf $TEXDIR
if [ -z $TINYTEX_VERSION ]; then
TINYTEX_URL="https://github.com/rstudio/tinytex-releases/releases/download/daily/$TINYTEX_INSTALLER"
else
# the installer was accidentally named "install-unix" instead of "installer-unix" before v2025.01
if [ "$TINYTEX_INSTALLER" = "installer-unix" ] && [[ "$TINYTEX_VERSION" -le "2025.01" ]]; then
TINYTEX_INSTALLER="install-unix"
fi
TINYTEX_URL="https://github.com/rstudio/tinytex-releases/releases/download/v$TINYTEX_VERSION/$TINYTEX_INSTALLER-v$TINYTEX_VERSION"
fi

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

0 comments on commit f47cb42

Please sign in to comment.