Skip to content

Commit

Permalink
Merge pull request #76 from test-fullautomation/ntd1hc/hotfix/windows…
Browse files Browse the repository at this point in the history
…-install-texlive-failed

Ntd1hc/hotfix/windows install texlive failed
  • Loading branch information
test-fullautomation authored Mar 17, 2023
2 parents 3b6cac7 + 01d2f94 commit 9af0c1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_robotframework_aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
name: Build Windows package
runs-on: windows-latest
env:
GENDOC_LATEXPATH: C:/texlive/2022/bin/win32
GENDOC_LATEXPATH: C:/texlive/aio/bin/win32
steps:
- name: Support long path in git
run: git config --system core.longpaths true
Expand Down
26 changes: 22 additions & 4 deletions requirements_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,27 @@ texlive_packages=(
"listings"
"pdfcol"
)
extra_packages=""
# extra_packages=""
# for package in ${texlive_packages[@]}; do
# extra_packages+="$package,"
# done

if [ -n $GENDOC_LATEXPATH ]; then
TEXLIVE_DIR=${GENDOC_LATEXPATH%/bin/win32}
else
TEXLIVE_DIR="C:/texlive/aio"
export GENDOC_LATEXPATH="${TEXLIVE_DIR}/bin/win32"
fi

# choco install texlive --version=2022.20221202 --params "'/collections:pictures,latex,latexextra,latexrecommended'" --execution-timeout 5400
choco install texlive --params "'/collections:pictures,latex /InstallationPath:${TEXLIVE_DIR}'"

tlmgr="${TEXLIVE_DIR}/bin/win32/tlmgr.bat"

# Update TeX Live package database
$tlmgr update --self --all

# Install each package in the list
for package in ${texlive_packages[@]}; do
extra_packages+="$package,"
$tlmgr install "$package"
done

choco install texlive --version=2022.20221202 --params "'/collections:pictures,latex /extraPackages:${extra_packages::-1}'"

0 comments on commit 9af0c1b

Please sign in to comment.