redddcyclone / glpi-agentmonitor

GLPI-Agent monitoring utility for Windows (systray icon)
GNU General Public License v2.0
9 stars 5 forks source link

Set versioninfo variables from tag #2

Closed g-bougard closed 1 year ago

g-bougard commented 1 year ago

The tag must match the following pattern: MAJOR.MINOR.REV(-ANY_DESIRED_TAG)

g-bougard commented 1 year ago

This is a solution to answer glpi-project/glpi-agentmonitor#4

redddcyclone commented 1 year ago

Hi @g-bougard

This is great, thank you!

But just one thing: should we really append the version to PRODUCTNAME? As it is already present on PRODUCTVERSION...

g-bougard commented 1 year ago

Tested again setting 1.0.1-build-test-3 as tag following your comment from the discussion: https://github.com/glpi-project/glpi-agentmonitor/actions/runs/4992716531 The only difference is my build includes the code signing step. Everything seems okay, the draft release is also good. There's still an issue with x86 version on VirusTotal, still a malicious false positive from DeepInstinct. This morning I tried to contact them to alert them of the problem. I really don't know if this can help as they don't have publicly communicated on how to report false positive cases.

g-bougard commented 1 year ago

But just one thing: should we really append the version to PRODUCTNAME? As it is already present on PRODUCTVERSION...

The version is not added to PRODUCTNAME, only the part from the tag behind the first - char. For example, in my test, I set tag to 1.0.1-build-test-3, so PRODUCTNAME is set to GLPI Agent Monitor (build-test-3). For normal release there won't be anything added. This is just cosmetic but this is the best way I know to have a difference between a binary built by 1.0.1-build-test-3 tag & one built by 1.0.1-build-test-4 tag. Here is the result for the file details in windows of my test: image

redddcyclone commented 1 year ago

Ahh, I'm sorry, I didn't notice it was just the - part. I agree, this is a good way to separate the built binaries.

Thanks for the contribution, @g-bougard!