diff --git a/appveyor.yml b/appveyor.yml index c5738e59d..000304d7f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -54,10 +54,14 @@ for: deploy: provider: GitHub - repository: yihui/chocolatey-tinytex + repository: yihui/tinytex-windows tag: $(TINYTEX_TAG) release: TinyTeX $(TINYTEX_TAG) - description: '`TinyTeX-0.zip` contains the `infraonly` scheme of TeX Live, without any LaTeX packages. `TinyTeX-1.zip` contains enough LaTeX packages to compile R Markdown documents. `TinyTeX.zip` contains even more LaTeX packages. Please see https://github.com/yihui/chocolatey-tinytex for more info.' + description: > + `TinyTeX-0.zip` contains the `infraonly` scheme of TeX Live, without any + LaTeX packages. `TinyTeX-1.zip` contains enough LaTeX packages to compile + R Markdown documents. `TinyTeX.zip` contains even more LaTeX packages. + Please see https://github.com/yihui/tinytex-windows for more info. auth_token: secure: 7J9/ZS/EeHhAuxS+mtlT7mPKyLSEmXHRXK1fhBGSptLTmcIFqTbdRHRcTcgEB89n on: @@ -82,7 +86,7 @@ for: - R CMD INSTALL . build_script: - - "sed -i '' 's|# finished base install|tar zcf TinyTeX-0.tgz -C ~/Library TinyTeX|' tools/install-unx.sh" + - sed -i '' 's|# finished base|tar zcf ${APPVEYOR_BUILD_FOLDER}/TinyTeX-0.tgz -C ~/Library TinyTeX|' tools/install-unx.sh - ./tools/install-unx.sh - tar zcf TinyTeX-1.tgz -C ~/Library TinyTeX @@ -114,9 +118,9 @@ for: - R CMD INSTALL . build_script: - - "sed -i 's|# finished base install|tar zcf TinyTeX-0.tar.gz -C ~ .TinyTeX|' tools/install-unx.sh" + - sed -i 's|# finished base|tar zcf ${APPVEYOR_BUILD_FOLDER}/TinyTeX-0.tar.gz -C ~ .TinyTeX|' tools/install-unx.sh - ./tools/install-unx.sh - - tar zcf TinyTeX-1.tgz -C ~/Library TinyTeX + - tar zcf TinyTeX-1.tar.gz -C ~ .TinyTeX test_script: - export PATH="$HOME/bin:$PATH" diff --git a/tools/install-unx.sh b/tools/install-unx.sh index 357cf20c2..eb3b7d1fe 100755 --- a/tools/install-unx.sh +++ b/tools/install-unx.sh @@ -16,7 +16,7 @@ rm -rf $TEXDIR mkdir -p $TEXDIR mv texlive/* $TEXDIR rm -r texlive -# finished base install +# finished base $TEXDIR/bin/*/tlmgr install $(download https://yihui.org/gh/tinytex/tools/pkgs-custom.txt | tr '\n' ' ') diff --git a/tools/release-github.R b/tools/release-github.R index 0b0d539ef..b9163efbf 100644 --- a/tools/release-github.R +++ b/tools/release-github.R @@ -12,10 +12,10 @@ process_file = function(file, FUN = identity, x = xfun::read_utf8(file)) { } system(sprintf( - 'git clone https://%s@github.com/yihui/chocolatey-tinytex.git', + 'git clone https://%s@github.com/yihui/tinytex-windows.git', Sys.getenv('GH_TOKEN') )) -xfun::in_dir('chocolatey-tinytex', { +xfun::in_dir('tinytex-windows', { m = tools::md5sum('../TinyTeX-1.zip') f = function(x, r, val) { if (length(i <- grep(r, x)) != 1) stop('There must be a line that matches ', r)