Skip to content

Share version deduction code between packaging scripts #820

@nwhite-riot

Description

@nwhite-riot

Packaging scripts should have shared logic to determine the current version so that they can handle search etc. better. This is an issue if developers are running the scripts locally and have leftover files from previous versions of the plugin (e.g. 0.22 and 1.00-alpha.3)

Plugin spec and version are handled in pack.ps1 here:

$pluginSpec = Get-Content "plugin-dev/Sentry.uplugin"
$version = [regex]::Match("$pluginSpec", '"VersionName": "([^"]+)"').Groups[1].Value

... but test-contents.ps1 uses wildcard for plugin version:

$packages = Get-ChildItem "$projectRoot/sentry-unreal-*-$publishingPlatform.zip"

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions