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

Build TinyTex-2 on windows as self extracting archive using sfx #398

Merged
merged 6 commits into from
Jan 11, 2023

Conversation

cderv
Copy link
Contributor

@cderv cderv commented Jan 11, 2023

Aim is to have a self extracting archive which will be more compressed than previous zip as we are close to limit already

closes #396

@cderv cderv merged commit 60587ad into main Jan 11, 2023
@cderv cderv deleted the windows-sfx branch January 11, 2023 10:56
Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks!

@@ -487,7 +493,7 @@ download_installer = function(file, version) {
url = if (version != '') sprintf(
'https://github.com/rstudio/tinytex-releases/releases/download/v%s/%s', version, file
) else paste0(getOption('tinytex.install.url', 'https://yihui.org/tinytex/'), file)
download_file(url, file)
download_file(url, file, mode = if (is_windows()) "wb" else "w")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just use mode = 'wb' for all platforms, not only Windows. We know for sure that all these files are binary instead of text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that at first, but was not sure if mode = "wb" was supported or useful on all platform.
As you are confirming it is a thing on non-windows too, I'll modify then !

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.

Optimize TeX Live bundle for Windows
2 participants