Skip to content

Fix build for newer Qt library and provide GitHub workflows - #2

Merged
rene merged 3 commits into
zflashfrom
fix-build-new-qt
Nov 19, 2026
Merged

rene merged 3 commits into
zflashfrom
fix-build-new-qt

Conversation

@rene

@rene rene commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

This PR provides some fixes and improvements to ZFlash

  1. Small fix to allow build with newer version of Qt library
  2. Automation of self-signed build for Windows
  3. Introduces GitHub workflows to build and publish ZFlash

rene and others added 2 commits November 19, 2026 14:02
qt_add_lupdate(SOURCE_TARGETS zflash) was called before
add_executable(zflash). Newer Qt LinguistTools query the target's
autogen build directory immediately, so configuring fails with:

  get_property could not find TARGET zflash. Perhaps it has not yet
  been created.

Older Qt versions resolved the target lazily, which hid the ordering
problem. Move the call after add_executable() so it works with both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
Signing always used `signtool /a` with the DigiCert timestamp server,
hard-coded in the post-build step and in both installer scripts, so
there was no way to choose a specific certificate or to sign offline.

Add two CMake options, used everywhere signtool is invoked:
- IMAGER_SIGN_CERT_SHA1: thumbprint of the certificate to sign with
  (empty keeps the previous /a behaviour).
- IMAGER_SIGN_TIMESTAMP_URL: RFC 3161 timestamp server (defaults to
  DigiCert; empty disables timestamping).

Add build-win-selfsigned.ps1, which creates (or reuses/imports) a
self-signed code signing certificate in Cert:\CurrentUser\My, exports
its public part, optionally trusts it locally, and builds the signed
application and installer. It can also sign arbitrary files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene rene changed the title Fix buld for newer Qt library and provide GitHub workflows Fix build for newer Qt library and provide GitHub workflows Nov 19, 2026

@orca-security-us orca-security-us Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@rene
rene force-pushed the fix-build-new-qt branch 3 times, most recently from d9a1492 to 85a6dae Compare November 19, 2026 13:54
Add a build workflow that runs on every pull request and builds:
- Linux: x86_64 AppImage (via create-appimage.sh, on Ubuntu 22.04)
- Windows: x64 Inno Setup installer (Qt MinGW toolchain)
- macOS: universal DMG

Packages are attached to the run as artifacts.

Add a manually triggered release workflow that reuses the build
workflow, creates the GitHub release (tag defaults to v<version> from
src/CMakeLists.txt, draft by default) and uploads the packages plus a
SHA256SUMS file. Windows binaries can optionally be signed with a
certificate provided through the WINDOWS_SIGNING_PFX and
WINDOWS_SIGNING_PFX_PASSWORD secrets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene
rene merged commit 96b84f4 into zflash Nov 19, 2026
12 checks passed
@rene
rene deleted the fix-build-new-qt branch November 19, 2026 14:25
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.

1 participant