-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Windows binary improvements #1727
Conversation
packaging/gen-versioninfo.go
Outdated
} | ||
|
||
func main() { | ||
ver := strings.SplitN(consts.Version, ".", 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if consts.Version
is not a real constant, but something like []uint16{0, 29, 0}
, but that would involve a lot of other changes, and I think we should get this from Git anyway.
Codecov Report
@@ Coverage Diff @@
## master #1727 +/- ##
==========================================
- Coverage 71.52% 71.50% -0.02%
==========================================
Files 178 178
Lines 13719 13727 +8
==========================================
+ Hits 9812 9816 +4
- Misses 3295 3299 +4
Partials 612 612
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I skimmed through the changes and at glance they LGTM, but to answer your questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I agree with both of you on all the points :D .
I would like to remind people that PR numbers are free (until we are close to a power of 2 ;) ), so having (self-contained) changes spread over multiple PRs IMO is preferable ;)
True, but MSI package signing is closely related to this, and the less notifications I get and GitHub I have to use, the better :-P (See how I messed up the Assignees and Reviewers in this PR...) But makes sense, I'll do that in another PR. |
Converted from the new SVG logo with ImageMagick: convert -channel rgba -background 'rgba(0,0,0,0)' -define icon:auto-resize=256,128,64,32,16 logo.svg logo.ico
These are now generated by build-release.sh in CI.
437fd67
to
f1dea93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This enhances the Windows k6 binary by adding an icon and some release metadata like version information, visible in the file's Properties. Additionally, the k6.ico was updated to the new logo in higher resolution, and the MSI installer assets were updated as well.
Before:
After:
This is based on previous work in #1394
and the templating suggestion by @na--.We decided to abandon the templating approach in favor of passing metadata via CLI args.You can inspect the binary if you download the build artifacts from here.
Pending work:
Version
constant and rely only on Git tags, but I'll leave that change for later as well.