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

feat: Enable static thumbnail generation on Windows #369

Merged
merged 10 commits into from
Oct 10, 2022

Conversation

KararTY
Copy link
Contributor

@KararTY KararTY commented Oct 10, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

With this PR, I move @leon-richardt bespoke code from thumbnail_unix.go to thumbnail.go now that I've tested that this works just fine on Windows as well. (#312 should hopefully, eventually, eliminate thumbnail_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.

@KararTY KararTY changed the title feat: Build Windows artifact & Include build steps feat: Static thumbnail generation on Windows Oct 10, 2022
@codecov
Copy link

codecov bot commented Oct 10, 2022

Codecov Report

Merging #369 (b753787) into master (98d0c30) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master     #369   +/-   ##
=======================================
  Coverage   48.74%   48.74%           
=======================================
  Files          98       98           
  Lines        3159     3159           
=======================================
  Hits         1540     1540           
  Misses       1576     1576           
  Partials       43       43           
Impacted Files Coverage Δ
pkg/thumbnail/thumbnail.go 0.00% <0.00%> (ø)
pkg/thumbnail/thumbnail_unix.go 0.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@KararTY KararTY changed the title feat: Static thumbnail generation on Windows feat: Enable static thumbnail generation on Windows Oct 10, 2022
Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

Thank you!
image

@pajlada pajlada merged commit f963f43 into Chatterino:master Oct 10, 2022
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