Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify build instructions on Windows #37

Closed

Conversation

ntoslinux
Copy link

@ntoslinux ntoslinux commented Jan 4, 2024

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

@ntoslinux ntoslinux marked this pull request as draft January 4, 2024 21:38
@ntoslinux ntoslinux marked this pull request as ready for review January 4, 2024 21:39
@ntoslinux
Copy link
Author

@dendibakh

@dendibakh
Copy link
Owner

dendibakh commented Jan 17, 2024

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
Copy link
Owner

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
Copy link
Owner

And sorry for the delay

@dendibakh
Copy link
Owner

Fixed by 41055d2

@dendibakh dendibakh closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants