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(build): timestamp signed file built via CMake #4825

Merged
merged 1 commit into from
Jun 26, 2022
Merged

Conversation

Swiftb0y
Copy link
Member

Previously only builds generated by our github actions CI
were timestamped.

I still don't have a windows build environment to test/verify this works as intended.

Do we actually use the signing code in your CMakeLists.txt?

Previously only builds generated by our github actions CI
were timestamped.
@github-actions github-actions bot added the build label Jun 25, 2022
@JoergAtGithub
Copy link
Member

I tried this, PR on a local build. But as far I understood it, the timestamping code is only executed, when WINDOWS_CODESIGN is ON. But than it requires also WINDOWS_CODESIGN_CERTIFICATE_PATH and WINDOWS_CODESIGN_CERTIFICATE_PASSWORD which I don't have:
grafik

@daschuer
Copy link
Member

I do not really understand why we have both, code signing in the build.yml and in CMakeLists.txt.
But at least this PR looks reasonable.

@daschuer
Copy link
Member

On the Main branch I see:

2022-06-25T21:27:03.9783716Z ##[group]Run signtool sign /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /f $Env:WINDOWS_CODESIGN_CERTIFICATE_PATH /p $Env:WINDOWS_CODESIGN_CERTIFICATE_PASSWORD *.msi
2022-06-25T21:27:03.9786361Z �[36;1msigntool sign /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /f $Env:WINDOWS_CODESIGN_CERTIFICATE_PATH /p $Env:WINDOWS_CODESIGN_CERTIFICATE_PASSWORD *.msi�[0m

But I did not find

Signining target mixxx.exe

This should be the output form the CMakeLists.txt

Is the exe signed, or only the installer?

@daschuer
Copy link
Member

Ah, there is:

2022-06-25T21:16:34.5245381Z Successfully signed: D:/a/mixxx/mixxx/build/mixxx.exe

@daschuer
Copy link
Member

Do we actually use the signing code in your CMakeLists.txt?

Yes, one is the mixxx.exe and one the resulting msi. I think it is correct to have both.

Thank you for taking care!

@daschuer daschuer merged commit df85a74 into main Jun 26, 2022
@Swiftb0y Swiftb0y deleted the signtool_sha256 branch June 26, 2022 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants