Skip to content
Snippets Groups Projects
Commit b09b6a91 authored by James Yu's avatar James Yu
Browse files

Replace default latexindent instead of rename

parent 03ed4a27
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ jobs:
- name: Download latexindent binary
run: |
curl -s -O -L http://mirrors.ctan.org/support/latexindent/bin/linux/latexindent
mv latexindent /tmp/texlive/bin/x86_64-linux/latexindent-binary
chmod +x /tmp/texlive/bin/x86_64-linux/latexindent-binary
mv -f latexindent /tmp/texlive/bin/x86_64-linux/latexindent
chmod +x /tmp/texlive/bin/x86_64-linux/latexindent
if: steps.cache-texlive.outputs.cache-hit != 'true'
- uses: actions/setup-node@v3
with:
......
......@@ -43,7 +43,7 @@ jobs:
- name: Download latexindent binary
run: |
curl -s -O -L http://mirrors.ctan.org/support/latexindent/bin/macos/latexindent
[ -d /Users/runner/texlive/bin/x86_64-darwin/ ] && mv latexindent /Users/runner/texlive/bin/x86_64-darwin/latexindent-binary && chmod +x /Users/runner/texlive/bin/x86_64-darwin/latexindent-binary || [ -d /Users/runner/texlive/bin/universal-darwin/ ] && mv latexindent /Users/runner/texlive/bin/universal-darwin/latexindent-binary && chmod +x /Users/runner/texlive/bin/universal-darwin/latexindent-binary
[ -d /Users/runner/texlive/bin/x86_64-darwin/ ] && mv -f latexindent /Users/runner/texlive/bin/x86_64-darwin/latexindent && chmod +x /Users/runner/texlive/bin/x86_64-darwin/latexindent || [ -d /Users/runner/texlive/bin/universal-darwin/ ] && mv -f latexindent /Users/runner/texlive/bin/universal-darwin/latexindent && chmod +x /Users/runner/texlive/bin/universal-darwin/latexindent
if: steps.cache-texlive.outputs.cache-hit != 'true'
- uses: actions/setup-node@v3
with:
......
......@@ -47,7 +47,7 @@ jobs:
- name: Download latexindent binary
run: |
curl -s -O -L http://mirrors.ctan.org/support/latexindent/bin/windows/latexindent.exe
move "latexindent.exe" "D:\texlive\bin\win32\latexindent-binary.exe"
mv -Force "latexindent.exe" "D:\texlive\bin\win32\latexindent-binary.exe"
if: steps.cache-texlive.outputs.cache-hit != 'true'
- uses: actions/setup-node@v3
with:
......
......@@ -17,7 +17,6 @@ suite('Formatter test suite', () => {
setup(async () => {
await vscode.commands.executeCommand('latex-workshop.activate')
await vscode.workspace.getConfiguration('latex-workshop').update('latexindent.path', 'latexindent-binary')
})
teardown(async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment