feat: Enable static thumbnail generation on Windows #369
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
With this PR, I move @leon-richardt bespoke code from
thumbnail_unix.go
tothumbnail.go
now that I've tested that this works just fine on Windows as well. (#312 should hopefully, eventually, eliminatethumbnail_unix.go
completely if this PR goes well)I've also updated the GitHub Windows workflow, with @33KK's help, to install a hardcoded version of libvips. Why hardcoded? Because I could not figure out how to download the latest release of anything on GitHub without resorting to JSON parsing, and if you want to tear your hair out dealing with that manually by writing Powershell then that's very humbling.
In any case, 8.13.2 should be sufficient for Windows for now. People who host chatterino/api and/or build from source can use updated version without issue, unless there's breaking changes of course.
The build prerequisites snippet addition basically describes the GitHub workflow, and you do need to follow it. Doesn't matter if you are just building or just hosting Chatterino API.