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(autoupdate): add hash 'match' mode #5556

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

T-727
Copy link

@T-727 T-727 commented Jun 21, 2023

Description

Setting autoupdate.hash to a string will make enter 'match' mode
Which just substitutes matches and takes the final string as hash

Motivation and Context

Closes #5487

How Has This Been Tested?

by running `checkver` on the following manifest:
{
    "homepage": "https://github.com",
    "version": " ",
    "checkver": {
        "script": "Write-Output '#20514397D70D8FB99E021A5F28FBEBA3FC29814EC452EF1A3A3FCF42B08BB752'",
        "regex": "(#)(?<HASH>.+)"
    },
    "hash": "20514397d70d8fb99e021a5f28fbeba3fc29814ec452ef1a3a3fcf42b08bb752",
    "url": "https://github.com",
    "architecture": {
        "32bit": {
            "url": "https://github.com",
            "hash": "20514397d70d8fb99e021a5f28fbeba3fc29814ec452ef1a3a3fcf42b08bb752"
        }
    },
    "autoupdate": {
        "url": "https://github.com",
        "hash": "$matchHASH",
        "architecture": {
            "32bit": {
                "hash": "$matchHASH"
            }
        }
    }
}

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

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.

None yet

1 participant