perf-book icon indicating copy to clipboard operation
perf-book copied to clipboard

Simplify build instructions on Windows

Open ntoslinux opened this issue 2 years ago • 4 comments

Below change will make the build instructions same as Linux. We just have to run cmd before running them.

ntoslinux avatar Jan 04 '24 06:01 ntoslinux

@dendibakh

ntoslinux avatar Jan 13 '24 06:01 ntoslinux

Actually, you're right. I like to use powershell on windows (and maybe some other folks as well), so let's keep powershell commands as well.

dendibakh avatar Jan 17 '24 12:01 dendibakh

My suggestion:

# Windows cmd prompt
python export_book.py && pdflatex book.tex && bibtex book && pdflatex book.tex && pdflatex book.tex

# Windows powershell
function Run-Block-With-Error($block) {
    $ErrorActionPreference="Stop"
    Invoke-Command -ScriptBlock $block
}
Run-Block-With-Error {python.exe export_book.py; pdflatex book.tex; bibtex book; pdflatex book.tex; pdflatex book.tex}

dendibakh avatar Jan 17 '24 12:01 dendibakh

And sorry for the delay

dendibakh avatar Jan 17 '24 12:01 dendibakh

Fixed by https://github.com/dendibakh/perf-book/commit/41055d29168b80646d7327c51a3ef8738d83f5e1

dendibakh avatar Apr 30 '24 16:04 dendibakh