-
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
Fix: windows installer #1394
Fix: windows installer #1394
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1394 +/- ##
=======================================
Coverage 75.46% 75.46%
=======================================
Files 150 150
Lines 10911 10911
=======================================
Hits 8234 8234
Misses 2210 2210
Partials 467 467 Continue to review full report at Codecov.
|
https://github.com/josephspurrier/goversioninfo this also looks like a good tool to furnish other useful data besides the icon file in the |
402878c
to
7ee006b
Compare
7ee006b
to
2b49e99
Compare
Codecov Report
@@ Coverage Diff @@
## master #1394 +/- ##
==========================================
+ Coverage 77.13% 77.16% +0.03%
==========================================
Files 162 162
Lines 13263 13263
==========================================
+ Hits 10230 10234 +4
+ Misses 2512 2508 -4
Partials 521 521
Continue to review full report at Codecov.
|
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.
I'd forgotten this PR, and the version bump reminded me 😞 But that same version bump also is a bit worrying to me, given how many times we've forgotten to update such static things (e.g. the Go version in the AppVeyor config), so I'd prefer if we can avoid adding more such opportunities...
Given that we have the k6 version as a code constant: https://github.com/loadimpact/k6/blob/3a713ec1b70b4c79eee6897b78d6dfd7ab659ce5/lib/consts/consts.go#L30-L31
And that we can get even more build details as part of the CI process, if we want to include such information in the windows package: https://github.com/loadimpact/k6/blob/3a713ec1b70b4c79eee6897b78d6dfd7ab659ce5/.circleci/config.yml#L174-L175
I think the approach here should be something like:
- have a
versioninfo.json.template
template and a simple Go program in/packaging
that importsk6/lib/consts
and creates the realversioninfo.json
with the actual current k6 version - add the resulting
packaging/versioninfo.json
to.gitignore
, so that theVersionDetails
doesn't contain-dirty
- execute
go run generate_versioninfo.go
on every windows build
Something like that should save us some manual work on every release and, more importantly, guarantee that we can never forget to update the version info accidentally. Whether this has to be done as a part of this PR (i.e. in AppVeyor), or as a part of @imiric's efforts to transition to GitHub actions, I don't know.
@imiric It would be awesome if you can take over. I can test it afterward. |
Closing this in favor of #1727. |
Hi,
I have added the new k6 logo plus its icon and banners to the windows installer. Upon getting the code signing certificate, I'll fix the package signing across all distributions, especially #1034 and #1247.
Also, the current ".ico" file is not used to make a k6 executable,
so I created a ".syso" file using rsrc tool. Theso I used goversioninfo to generate a resource file to accompany thego build
process picks it up and includes it in the final executable file.go build
process.I don't expect a new release just for the sake of this small change, so this PR can wait for the next release, or you decide.