-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtinytex.json
54 lines (54 loc) · 3.15 KB
/
tinytex.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"description": "A lightweight, cross-platform, portable, and easy-to-maintain LaTeX distribution based on TeX Live. This versions contains enough LaTeX packages to compile R Markdown documents. More can be installed by the user.",
"homepage": "https://yihui.org/tinytex/",
"url": "https://github.com/yihui/tinytex-releases/releases/download/v2025.02/TinyTeX-1-v2025.02.zip",
"extract_dir": "TinyTeX",
"license": "https://tug.org/texlive/LICENSE.TL",
"hash": "6c5a92a73f847a8b826507c165d026c170d4f513396518ede11bd46c47c96bf0",
"version": "2025.02",
"notes": "For full documentation, see https://yihui.org/tinytex/",
"pre_install": [
"try{if (Test-Path $(appdir tinytex-min)) { throw \"You already have Tinytex-min installed. Run scoop uninstall tinytex-min if you want to use TinyTeX.\"}}",
"catch{",
"Write-Host \"--> Another tinytex installation has been already found. Cancelling current installation...\" -f red",
"scoop uninstall $app",
"throw $_",
"}",
"try{if (Test-Path $(appdir tinytex-extra)) { throw \"You already have Tinytex-full installed. Run scoop uninstall tinytex-extra if you want to use TinyTeX.\"}}",
"catch{",
"Write-Host \"--> Another tinytex installation has been found. Cancelling current installation...\" -f red",
"scoop uninstall $app",
"throw $_",
"}"
],
"post_install": [
"echo \"--> Running tlmgr path add\"",
"Start-Process \"cmd.exe\" \"/c `\"$dir\\bin\\windows\\tlmgr.bat path add`\"\" -Wait -NoNewWindow",
"echo \"--> Updating tlmgr itself\"",
"Invoke-Expression \"$dir\\bin\\windows\\tlmgr.bat update --self\"",
"if (Test-Path $env:TMP\\tinytex-pkg-installed-$(Get-Date -Format ddMMyyHH).txt) {",
"$tinytex_tmp_file=\"$env:TMP\\tinytex-pkg-installed-$(Get-Date -Format ddMMyyHH).txt\"",
"$tinytex_pkg_installed = (Invoke-Expression \"$dir\\bin\\windows\\tlmgr.bat info --list --only-installed --data name\")",
"$tinytex_reinstall=\"$env:TMP\\installed_old_packages.ps1\"",
"((Get-Content $tinytex_tmp_file) | Where { $tinytex_pkg_installed -NotContains $_}) | % {\"Invoke-Expression '$dir\\bin\\windows\\tlmgr.bat install {0}'\" -f $_} > $tinytex_reinstall",
"if ((Get-Content $tinytex_reinstall) -ne $null) {",
"echo \"--> Reinstalling previous user packages\"",
"Invoke-Expression \"$tinytex_reinstall\"",
"}",
"Remove-Item $env:TMP/installed_old_packages.ps1, $tinytex_tmp_file",
"}"
],
"uninstaller": {
"script": [
"tlmgr info --list --only-installed --data name > $env:TMP/tinytex-pkg-installed-$(Get-Date -Format ddMMyyHH).txt",
"echo \"--> Running tlmgr path remove\"",
"Start-Process \"cmd.exe\" \"/c `\"$dir\\bin\\windows\\tlmgr.bat path remove`\"\" -Wait -NoNewWindow"
]
},
"checkver": {
"github": "https://github.com/yihui/tinytex-releases"
},
"autoupdate": {
"url": "https://github.com/yihui/tinytex-releases/releases/download/v$version/TinyTeX-1-v$version.zip"
}
}